Page 1 of 1

{SHOW_CONTENT:CP,ID} does not work on my side....

Posted: Sun 19. Nov 2006, 04:07
by pasci
Hi all...

I've got a small question about the SHOW_CONTENT replacement tag...

I have Version 1.2.8 and wanna insert a "Artikelliste" content Part to a Frontend Template for showing the list of all Newsentries on the left....

I entered the following RT into the {LEFT} field in the template:
"{LEFT}{SHOW_CONTENT:CP,16}"

But the content Part is not shown, when I go to the page...
Do I have to do something else for making it work, what am I doing wrong?
Did I forget to do something additional?

Thanks for your help! :!: :?: :!:

Posted: Sun 19. Nov 2006, 06:27
by DeXXus
"conf.inc.php"

Code: Select all

$phpwcms['allow_cntPHP_rt']   = 1; //allow PHP replacement tags and includes in content parts
And, of course, no "quote" marks around Rep Tags... LOL ! :P

Oops... missed the part about "template". Ignore my recommendation.

Posted: Sun 19. Nov 2006, 07:55
by flip-flop
Hi ,

please have a look: http://www.phpwcms.de/forum/viewtopic.php?p=72571#72571
Please be shure that you did used the ID´s of CP´s for this construktion {SHOW_CONTENT:CP,16,..,..}
The tag´s {SHOW_CONTENT:CPA,16,..,..} and {SHOW_CONTENT:CPAD,16,..,..} use the article ID´s.!!!!

$phpwcms['allow_cntPHP_rt'] don´t exert influence using this tag at the template.

Whitch CP did you use for "Artikelliste"?

Regards Knut

Posted: Sun 19. Nov 2006, 16:55
by pasci
Hi Knut!

Thanks for your help.

I saw that topic you wrote, but I'm not shure, if I do right.
In the following screenshot you can see what I wanna do exactly...

Image

Wanna show the red marked content in all articles in the subfolder "newsentries"... (instead of making Contentpart Aliases like ID:20 and ID:22)

In the screenshot you also can see that I use "Artikelmenu" CP.
Is it correct, that I have to write {LEFT}{SHOW_CONTENT:CP,24} into the template in the admin section?

If I go to any of the pages in the "News"-Folder then I get following message on my screen:
"error while getting link article list: SELECT article_id, article_title, article_cid, article_summary FROM phpwcms_article WHERE article_public=1 AND article_aktiv=1 AND article_deleted=0 AND article_cid=3 AND article_beginNOW() AND article_id != ORDER BY article_sort ASC"

Tks for help...
cheers.. pascal

Posted: Mon 20. Nov 2006, 06:55
by flip-flop
Hi pascal,

you are right, I think that´s an program error. Using the Tag {SHOW_CONTENT:CP,ID} inside an template and have a call to "Artikelmenü" this error is produced. :(
Using it inside a CP it works. (I have informed O.G.).

Regards Knut

Posted: Mon 20. Nov 2006, 07:54
by Oliver Georgi
Hm,

OK, habs - glaube ich ;-)

in der Datei ext.func.inc.php muss in der Funktion showSelectedContent() noch folgende Zeile rein - die globale Variable fehlt sonst:

Code: Select all

global $aktion;
Sieht dann also angerissen so aus:

Code: Select all

function showSelectedContent($param='') {

	global $template_default;
	global $db;
	global $content;
	global $block;
	global $phpwcms;
	global $aktion;

	if($cp = explode(',', $param)) {
	...
Oliver

Posted: Mon 20. Nov 2006, 09:29
by flip-flop
Yes it works perfectly. :!: (GT mode is also running now in SHOW_CONTENT). :D :D

Regards Knut

Posted: Mon 20. Nov 2006, 10:01
by DeXXus
:D :) -=SUPER=- :D :)

Posted: Mon 20. Nov 2006, 23:58
by pasci
yihaaa, schnurrt wie ne Katze! Tks for help!!!
cheers... pascal