Re: Some Design Questions...
No problem. That's what I'm here for. ![]()
You are not logged in. Please login or register.
ProText Themes Forum → Headlines → Some Design Questions...
No problem. That's what I'm here for. ![]()
Hey Stuart.
Another fun question for you.
Is it possible to create a widget to show in just a single "category" instead of a "section"? For example, I would like for a head_widget_text2 to show only in my "Rules and Regulations" category. Would the code look something like this if I wanted to do that? I've tested this code and it breaks the page so I am not sure what I am doing wrong.
<div id="sidebar" class="col-<txp:if_variable name="display_sidebar_left_or_right" value='left'>left</txp:if_variable><txp:if_variable name="display_sidebar_left_or_right" value='right'>right</txp:if_variable>">
<txp:if_section name='<txp:variable name="main_articles_section" />'>
<txp:output_form form="head_widget_tabs" />
<txp:output_form form="head_widget_advert" />
<txp:output_form form="head_widget_calendar" />
<txp:else />
<txp:if_category name='<txp:variable name="rules-regs" />'>
<txp:output_form form="head_widget_tabs" />
<txp:output_form form="head_widget_text2" />
<txp:output_form form="head_widget_calendar" />
<txp:else />
<txp:output_form form="head_widget_tabs" />
<txp:output_form form="head_widget_calendar" />
</txp:if_section>
</div> <!-- /#sidebar -->
Also, how can I change that blue image that looks like a power button once someone leaves a comment on the page? Thanks.
Not quite but at least you are having a go. For future use bookmark this link which gives you a detailed explanation of all available tags and their attributes.
First of all we don’t need the <txp:variable /> tag as we know which category we want to use and the variable tag is calling something from the “Theme Variables” tab which doesn’t exist. We also need to close the tag and swap the order round a bit so try this:-
<txp:if_category name="rules-regs">
<txp:output_form form="head_widget_tabs" />
<txp:output_form form="head_widget_text2" />
<txp:output_form form="head_widget_calendar" />
<txp:else />
<txp:if_section name='<txp:variable name="main_articles_section" />'>
<txp:output_form form="head_widget_tabs" />
<txp:output_form form="head_widget_advert" />
<txp:output_form form="head_widget_calendar" />
<txp:else />
<txp:output_form form="head_widget_tabs" />
<txp:output_form form="head_widget_calendar" />
</txp:if_section>
</txp:if_category>
I’m not sure what you mean about the “power button”. What does it do or say?
Excellent, Stuart. Thank you!
Regarding the
ProText Themes Forum → Headlines → Some Design Questions...
Powered by PunBB, supported by Informer Technologies, Inc.
Currently used extensions: pun_invitation_only, pun_repository. Copyright © 2009 PunBB