Image Template: Link on caption

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

Image Template: Link on caption

Postby macangelo » Wed 21. Sep 2016, 16:30

Hi all

I'm using the content part "Images <div>" and apply a link on the image by writing in the caption field something like:
my image|my image|target.html

Is there a way to setup the inc_cntpart/images/mytemplate.tmpl so that the link is automatically also on the caption?

Thanks a lot
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign

User avatar
Oliver Georgi
Site Admin
Posts: 9385
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau
Contact:

Re: Image Template: Link on caption

Postby Oliver Georgi » Wed 21. Sep 2016, 18:26

Code: Select all

[URL]<a href="{URL}"[URL_TARGET] {URL_TARGET}[/URL_TARGET]>{URL}</a>[/URL]
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn

macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

Re: Image Template: Link on caption

Postby macangelo » Wed 21. Sep 2016, 19:11

Besten Dank!

Wie kann ich die beiden Zeilen schachteln? Damit die Caption, die im Backend eingetragen wurde, auch durchgespielt wird?

Code: Select all

[URL]<a href="{URL}"[URL_TARGET] {URL_TARGET}[/URL_TARGET]>{URL}</a>[/URL]
[CAPTION]<p class="img-caption">{CAPTION}</p>[/CAPTION]
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign

User avatar
kleiner_Punkt
Posts: 111
Joined: Thu 21. Feb 2008, 10:47

Re: Image Template: Link on caption

Postby kleiner_Punkt » Fri 23. Sep 2016, 11:49

;)

Code: Select all

[CAPTION]<p class="img-caption">[URL]<a href="{URL}"[URL_TARGET] {URL_TARGET}[/URL_TARGET]>{CAPTION}</a>[/URL]</p>[/CAPTION]
Ich kann aus jeder Ordnung Chaos schaffen!

macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

Re: Image Template: Link on caption

Postby macangelo » Fri 23. Sep 2016, 12:00

cool!
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign

User avatar
top
Posts: 419
Joined: Fri 11. Aug 2006, 15:03
Location: Eutin

Re: Image Template: Link on caption

Postby top » Sat 24. Sep 2016, 11:54

Wenn ich das richtig überblicke, bleibt so der Absatz mit der Caption leer, wenn kein Link gesetzt wird. Mit folgender kleinen Ergänzung dürfte es auch ohne Link funktionieren: (ungetestet)

Code: Select all

[CAPTION]<p class="img-caption">[URL]<a href="{URL}"[URL_TARGET] {URL_TARGET}[/URL_TARGET]>[/URL]{CAPTION}[URL]</a>[/URL]</p>[/CAPTION]


Return to “phpwcms Support English”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest