[Pro] PHP include text in link

I have designed a page that has multiple markup items, among which are a thumbsheet area and a targeted iframe, into which loads the photo/caption pages linked to the thumbnails. That much I could figure out.
Now for the easy part… I also want to have a space for a gallery title, that would also be loaded by the link to that page. In other words, that the Text that gets loaded into the title placeholder (another php item) would be included as part of the link, something along the lines of (in the external link dialog):

photos/gallerypage.php?gallery=desertlandscape&thumbsheet=desertlandscapeth&title=“Desert Landscapes”

I can’t quite seem to stumble onto the correct syntax. Is this possible?

Thanks, David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sure. You have to do it in two different places, though. If the Title property is part of your URL anyway, and needs to be there for some reason for the link to work, then leave it there. But if not, the way you get a title to appear in a link is with this syntax:

<a href="link" title="title"><img /></a>

If you are building the template with Freeway directly (not a text editor) then you would select your placeholder image, apply a link with Command - K, put your local equivalent of <?= $link ?> (I don’t know what you called your link variable) in the External well of the dialog, and then in the Title field, enter <?= $title ?> (or whatever you called that variable).

If you haven’t seen this syntax before: <?= $variable ?> it’s a short-hand way to reference a variable in a template. You can only put simple things that evaluate to a string inside one – no control operators or anything fancy – but it saves a few keystrokes when you’re typing in the code. If it doesn’t appear to work, then your server isn’t set to enable “short_open_tags” in its preferences, and you’ll have to substitute <?php print $variable; ?> for it. Note also that it doesn’t take a closing semicolon.

Walter

On Oct 1, 2012, at 6:35 PM, David wrote:

I have designed a page that has multiple markup items, among which are a thumbsheet area and a targeted iframe, into which loads the photo/caption pages linked to the thumbnails. That much I could figure out.
Now for the easy part… I also want to have a space for a gallery title, that would also be loaded by the link to that page. In other words, that the Text that gets loaded into the title placeholder (another php item) would be included as part of the link, something along the lines of (in the external link dialog):

photos/gallerypage.php?gallery=desertlandscape&thumbsheet=desertlandscapeth&title=“Desert Landscapes”

I can’t quite seem to stumble onto the correct syntax. Is this possible?

Thanks, David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options