{SHOW_ARTICLE_CP} <-> {SHOW_CP}

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: {SHOW_ARTICLE_CP} <-> {SHOW_CP}

Post by flip-flop »

Code: Select all

$foo .= '<li class=""><a href="#'.$value['acontent_id'].'">.'$value['acontent_title'].'</a></li>';
-> Der-Punkt-Operator
[EDIT: $foo . = -> $foo .= [/EDIT]

Ob es Sinn macht, das jQuery Framework parallel zu mootools einzusetzen steht auf einem anderen Blatt. (Seiteneffekte sind u.U. vorprogrammiert).

Außerdem lenkst du den Tread gerade in eine ganz andere Richtung, das hat mit dem Ursprung nichts mehr zu tun. Ist also jetzt schon verbrannt.

Knut
Last edited by flip-flop on Mon 25. Aug 2008, 10:13, edited 2 times in total.
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
yoshi001
Posts: 22
Joined: Sun 25. May 2008, 23:32
Location: Bodensee / Lake of Constance

coda-slider with jquery via {SHOW_ARTICLE_CP} <-> {SHOW_CP}

Post by yoshi001 »

hallo flip-flop..

sapperlot, natürlich: die variablen zusammenhängen - die punkte sind mir vor lauter blackout durchgegangen.

<edit>und wenn ich auch noch das leerzeichen zwischen punkt und gleichheitszeichen weglasse, dann gehts</edit>

tausend dank euch beiden für die unterstützung!

und: zuvor hatte ich versucht, das mit paginierten contentparts oder 'register/tabs' via mootools zu lösen..
mangels brauchbarer ergebnisse bin ich am coda-karusell hängen geblieben; da jquery ja auch schon mitgeliefert ist.

aber du hast recht - ich hätte evtl. ein neues topic gestartet..
dachte nicht, dass das hier so umfangreich würde.

danke & sorry,
yoshi


und DF6IH hat das inzwischen mal sichtbar umgesetzt:

http://jgbm.de/coda-test.phtml

bei mir beisst sich das jquery-skript mit den standardmässig geladenen mootools, weswegen ich das wohl auch mit mootools umsetzen werde, statt eine extra vorlage für slider-seiten vorzuhalten.
larissa
Posts: 39
Joined: Tue 31. Jul 2007, 23:18
Contact:

Re: {SHOW_ARTICLE_CP} <-> {SHOW_CP}

Post by larissa »

Dear flip-flop, many thanks for this,, but as you might guess I have a problem which is following:
simply i don't understand how [X}{SHOW_CP} works ( or better i have so many articles with so many CPs that i go crazy ) and simply I would like to use only {SHOW_CP} and let the system show ( in the rendered html page ) the order of the articles and relative CPs of each articles that I decide/set with up and down arrows . Is that possible ? at the moment i use numbers so i have 1{SHOW_CP} 2{SHOW_CP} 3{SHOW_CP} 4 {SHOW_CP} but as i said i really go crazy
MAny thanks in advance
LArissa
1000 Years to PHPWCMS!
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: {SHOW_ARTICLE_CP} <-> {SHOW_CP}

Post by flip-flop »

Hi,

You can turn off the sort order by the comment, and turn on sorting as defined in the structural by changing in
"template/inc_script/frontend_render/rt_show_article_cp.php"
around line 60 from

Code: Select all

      $sql .= "ORDER BY acontent_comment"; //  acontent_comment, article_aid, acontent_sorting
to

Code: Select all

      $sql .= "ORDER BY acontent_sorting"; //  acontent_comment, article_aid, acontent_sorting
Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
larissa
Posts: 39
Joined: Tue 31. Jul 2007, 23:18
Contact:

Re: {SHOW_ARTICLE_CP} <-> {SHOW_CP}

Post by larissa »

but then what shall I put in the /comments/notes field just {SHOW_CP} or ... [X] {SHOW_CP}
thanks again
1000 Years to PHPWCMS!
larissa
Posts: 39
Joined: Tue 31. Jul 2007, 23:18
Contact:

Re: {SHOW_ARTICLE_CP} <-> {SHOW_CP}

Post by larissa »

i have entered only {SHOW_CP} in all comments fields but it seems that it likes to Put together one above the other the CParts with the same content ..very strange.....
You can see the difference here this is done with {SHOW_CONTENT} and its ok but i dont like it because i have to edit the template but is OK because it keep the order
http://www.poltronova.com/index.php?archives-index

this one done with {SHOW_ARTICLE_CP}
http://www.poltronova.com/index.php?archives-flip-flop
but it does what i explained above i mean it puts one above the other Cparts with the same contents ( for istance it puts all the <hr> one above the other)
What i want as rendered is what you see in
http://www.poltronova.com/index.php?archives-index
that use {SHOW_CONTENT:CPA,25,13,14} {CONTENT } in template but using
your {SHOW_ARTICLE_CP}{CONTENT} so that i dont have to write the ID in the template
this the admin jpg
can you please help i really hope it can be done
LArissa
Image
Last edited by larissa on Sat 16. Jan 2010, 13:43, edited 1 time in total.
1000 Years to PHPWCMS!
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: {SHOW_ARTICLE_CP} <-> {SHOW_CP}

Post by flip-flop »

Yes, at the moment it is still not sorted by article groups, I will expand the RT (today) or tomorrow. (I haven´t time today to do so).

You know the system tag
{SHOW_CONTENT:CPA, art-id, art-id, art-id}
ascending list of Content Parts but based on
selected article | id = id of article, comma seperated.
Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
larissa
Posts: 39
Joined: Tue 31. Jul 2007, 23:18
Contact:

Re: {SHOW_ARTICLE_CP} <-> {SHOW_CP}

Post by larissa »

thnk you very much keep waiting your solution crossing fingers
Larissa
1000 Years to PHPWCMS!
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: {SHOW_ARTICLE_CP} <-> {SHOW_CP}

Post by flip-flop »

>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
larissa
Posts: 39
Joined: Tue 31. Jul 2007, 23:18
Contact:

Re: {SHOW_ARTICLE_CP} <-> {SHOW_CP}

Post by larissa »

Knut thank you very very very much I will try tomorrow
Larissa
1000 Years to PHPWCMS!
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: {SHOW_ARTICLE_CP} <-> {SHOW_CP}

Post by flip-flop »

And it works well for you?

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Post Reply