Active
Project:
DrupalIt
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2007 at 19:20 UTC
Updated:
29 Feb 2008 at 02:01 UTC
Right now the [drupalit] array in the $node object looks like this:
[drupalit] =>
<div id="vote-wrap-1001" class="vote-wrap">
<div id="vote-count-1001" class="vote-count">1</div>
<a href="/drupalit/count-vote/1001/1"><span id="vote-text-1001" class="vote-text">vote</span></a>
</div>
I want to do some restructuring of the layout. It would be nice if the vote count and the vote link would be seperated. Something like this:
[drupalit] => Array
[vote_count] => 1,
[vote link] => <a href="/drupalit/count-vote/1001/1"><span id="vote-text-1001" class="vote-text">vote</span></a>,
[vote address] => /drupalit/count-vote/1001/1
That way you would have total flexibility over the layout and can print the vote count and vote link whereever. Don't get me wrong css takes you a long way but for some things you need to restructure the XHTML also..
Comments
Comment #1
budda+1 for this