template question
template question
Can template variables be used in <thumb></thumb> templates? For example <!--CATEGORY_NAME-->, <!--MODEL_NAME-->, <!--SPONSOR_NAME-->, etc...
Re: template question
Depends on situation
I think it's easier to try then to theorize )
I think it's easier to try then to theorize )
Don't forget to run script update
Re: template question
Yes I've tried and it doesn't work. That's why I'm asking.
For custom template for sponsors or models:
<thumb sponsor=<!--SPONSOR_SLUG--> num=1-100>
and url:
tcms/tube/?sponsor_slug=sponsor1&force_template=sponsor_page
This results in no thumbs being displayed.
I've tried <!--SPONSOR_SLUG--> <!--SPONSOR_SITE--> <!--SPONSOR_ID--> and none of them work.
Build 201704221907
For custom template for sponsors or models:
<thumb sponsor=<!--SPONSOR_SLUG--> num=1-100>
and url:
tcms/tube/?sponsor_slug=sponsor1&force_template=sponsor_page
This results in no thumbs being displayed.
I've tried <!--SPONSOR_SLUG--> <!--SPONSOR_SITE--> <!--SPONSOR_ID--> and none of them work.
Build 201704221907
Re: template question
tcms/tube/?sponsor_slug=sponsor1&force_template=sponsor_page
you actually don't have to specify that in tag caz tags inherit GET parameters
you actually don't have to specify that in tag caz tags inherit GET parameters
Don't forget to run script update
Re: template question
Thank you. I didn't realize the sponsor= tag wasn't needed. It now works.
I do have an issue with navigation for custom template though. I notice the old rewrites for custom_galleries isn't in the default rewrites anymore. When I add it in manually it doesn't work. I get a "content not found" error.
I do have an issue with navigation for custom template though. I notice the old rewrites for custom_galleries isn't in the default rewrites anymore. When I add it in manually it doesn't work. I get a "content not found" error.
Re: template question
Code: Select all
RewriteRule ^sponsor_galleries/(.*)/(.*)/$ /tcms/tube/?sponsor_slug=$1&page=$2&force_template=sponsor_list [L]
My template:
Code: Select all
<navigation active_link_style=act_page link_style=not_act_page>
<li><a href="/sponsor_galleries/<!--SPONSOR_SLUG-->/<!--PAGE_NUM-->/" title="<!--PAGE_NUM-->" style='<!--LINK_STYLE-->'><!--PAGE_NUM--></a></li>
</navigation>
Re: template question
For some reason w/o the rewrite, the navigation isn't displaying whats in the sponsor_galleries template, rather whats in the category template. Possibly a bug?
Re: template question
What url w\o rewrite and what exactly it does not display?
Don't forget to run script update