Page 1 of 1
[SOLVED]NEWBIE: SHOW_CONTENT not rendering
Posted: Tue 21. Mar 2006, 20:00
by hillbilly
I've uploaded the SHOW_CONTENT RepTag to frontend_render, created a "Test" level in site structure, a "Test" page layout (using "custom" rendering) and template using defaults, and a test article with two content parts (ID:6, ID:7) using the new layout and template. The test article renders just fine by itself. In my main template, I placed the {SHOW_CONTENT:6} reptag inside a table. The content won't render in any of my pages.
'View source' shows the table data in the template without the content part or the {SHOW_CONTENT:6} tag. I've searched the forums and all I've come up with is to copy the reptag code into content.article.inc.php to avoid rendering conflicts with other tags. I'm assuming content.article.inc.php belongs to an earlier version of WCMS, because I can't seem to find it anywhere. Would this be a new file? If so, where does it go?
Can anybody help?
Posted: Tue 21. Mar 2006, 20:26
by ssyfrig
Hi
Do you use other RT's? Does these RT's working correct?
Is your site online? If yes can you post the url?
what is your value in /config/phpwcms/conf.inc.php
is it
?
greez Sven
Posted: Tue 21. Mar 2006, 21:12
by hillbilly
ssyfrig wrote:Do you use other RT's? Does these RT's working correct?
Yes, I am using NAV_TABLE_COLUMN and BREADCRUMB. They work fine.
ssyfrig wrote:Is your site online? If yes can you post the url?
Yes...
dadechamber.com
ssyfrig wrote:what is your value in /config/phpwcms/conf.inc.php
is it
?
Yes. I ran across that in another thread and checked. It is set to "=1".
Posted: Tue 21. Mar 2006, 21:43
by flip-flop
Hi hillbilly,
first I would make an update to 1.26.
http://www.phpwcms-docu.de/index.php?cvs_info_en
Gruß Knut
Re: NEWBIE: SHOW_CONTENT not rendering
Posted: Tue 21. Mar 2006, 21:48
by DeXXus
hillbilly wrote:'View source' shows the table data in the template without the content part or the {SHOW_CONTENT:6} tag.
Somehow this doesn't sound possible *IF* you have placed a checkmark in block called "default" (beside this template name ) *AND* chosen that layout from the dropdown menu directly below that template name.
hillbilly wrote:I've searched the forums and all I've come up with is to copy the reptag code into content.article.inc.php to avoid rendering conflicts with other tags. I'm assuming content.article.inc.php belongs to an earlier version of WCMS, because I can't seem to find it anywhere. Would this be a new file? If so, where does it go?
Can anybody help?
Don't know what version you're using, but that file has always been in "/include/inc_front" folder.
Posted: Tue 21. Mar 2006, 21:53
by ssyfrig
hmm,
try
create a File CATNUM.php
Code: Select all
<?php
// Display current category number - by David Quint
// include in include/inc_front/content.func.inc.php
if( ! (strpos($content["all"],'{CATNUM}')===false)) {
$content["all"] = str_replace('{CATNUM}', $content["cat_id"], $content["all"]);
}
//--------------------------------------------------------------
?>
& upload to /phpwcms_template/inc_script/frontend_render/
add {CATNUM} in article as a Text Content Part
works? should display your category Number
greez Sven
Posted: Tue 21. Mar 2006, 22:29
by hillbilly

I installed using Fantistico provided by my host. I had no idea the Fantastico version was so obsolete!
Thanks, flip-flop.
Posted: Wed 22. Mar 2006, 03:02
by flip-flop
Thanks!
Posted: Wed 22. Mar 2006, 15:00
by hillbilly
Thanks everyone! I deleted everything and tried a fresh install of v1.26 last night but I couldn't connect to the new database, so I'll reinstall using Fantastico and try to upgrade tonight.
Thanks again...
