i have created two kinds of views, one is for term view and the other one for node view.
The term view will list all terms for particular vocabulary, and node view will display nodes (ex: node titles) according to terms.
view_terms_location (term view) gives output of something like...
location-1
location-2
location-3
…
view_section_type (node view) would accept argument of terms (location-1, location-2, location-3, …)
in my views-view-fields--view-terms-location.tpl, i modify the code and inserted views_embed_view() function.
<ul>
<?php foreach ($rows as $id => $row): ?>
<?php echo '<li>' . $row . '</li>'; ?>
<?php echo views_embed_view('view_section_type', 'block', $row);
<?php endforeach; ?>
</ul >
i would expect some thing like this.
location-1
----------
* some node titles
* some node titles
location-2
----------
* some node titles
* some node titles
location-3
----------
* some node titles
* some node titles
...
but, it only list terms and not displaying nodes that correspond to a particular terms.
anyone with some idea. please help :(
thanks in advanced
Comments
Two thoughts 1) The node view
Two thoughts
1) The node view expects a term id (tid) but you are passing a term name.
2) $row has html "around" the value.
views-view-fields--view-terms
views-view-fields--view-terms-location.tpl is generating terms from $row. values from $row is actually clean as i check with firebug.
the result is something "location-1, location-2, and etch".
view_section_type view is set to accept argument based on terms. argument type: Term name/synonym converted to Term ID.
is the way i setup my views are not correct? :(
basing nevets evaluation 1)
basing nevets evaluation
i've tried using this code in my themed views template (views-view-fields--some-section.tpl) and hoping it will do some magic, but its not :(
basically it will display term names but won't call "view_section_type" which should display some nodes according to term id. :(
wow!!... i've been looking
wow!!... i've been looking over drupal forum and in some search engine for some possible work around for this issue (also this relate to my previous post http://drupal.org/node/546860)... but thanks to nevets for his hint, and with this site http://www.mugginsoft.com/content/create-drupal-6-view-block-based-taxon... i was able to come'up with some solution.
i'll be posting my solution on how i did it in some other times... method used are: creating 2 views block and views_embed_view() function.