Hi All,
I am trying to figure out how I can tell the difference between a cover
and a story.
I am generating a "bread crumb" and I only want to output the title of
the story if it is in fact of "story" type.
I am doing this in the autohandler:
<snip>
% if ($story->get_primary_category->ancestry_dir !~ /^\/home/
% && $story->get_primary_category &&
$story->get_primary_category->get_name ne 'Root Category') {
>
<a href="<% $story->get_primary_category->ancestry_dir %>/"
class="bread">
<% $story->get_primary_category->get_name %></a>
% }
</snip>
I looked thru the perldocs, but i didn't see anything obvious.
anyhelp would be greatly appreciated.
Thanks!
--
-------------------------
Sean P. Scanlon
perl -le 'print pack("h*", "3707370426c6575646f647e2e65647")'
-------------------------
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bricolage-General mailing list
Bricolage-General@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bricolage-general
I am trying to figure out how I can tell the difference between a cover
and a story.
I am generating a "bread crumb" and I only want to output the title of
the story if it is in fact of "story" type.
I am doing this in the autohandler:
<snip>
% if ($story->get_primary_category->ancestry_dir !~ /^\/home/
% && $story->get_primary_category &&
$story->get_primary_category->get_name ne 'Root Category') {
>
<a href="<% $story->get_primary_category->ancestry_dir %>/"
class="bread">
<% $story->get_primary_category->get_name %></a>
% }
</snip>
I looked thru the perldocs, but i didn't see anything obvious.
anyhelp would be greatly appreciated.
Thanks!
--
-------------------------
Sean P. Scanlon
perl -le 'print pack("h*", "3707370426c6575646f647e2e65647")'
-------------------------
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Bricolage-General mailing list
Bricolage-General@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bricolage-general