Off Topic
21 replies to this thread. Most Recent
Alexis
21 Jul 2008, 6:12 pm
EE tags and mark up
There are some freeware Expression Engine tags on the Ellislab site that can be added to a site using EE. How are these added to an item in Freeway. They don’t exist as an option in the Freeway EE tag action. I have tried several ways and always get the syntax error message when I link to the site on the web. Any ideas anyone?
Thanks
Alex
Joe Muscara
22 Jul 2008, 2:06 amHi Alex,
What ways have you tried? Did you use the Other… option in the Action to add them?
Joe
Joe Muscara
Freeway Actions and more http://t2studios.com/freeway
Alexis
22 Jul 2008, 7:06 amThanks for replying Joe
I think the action is great, I just don’t quite always get the way EE tags work. I have used the other option. There are tags on the EE site I want to use but when I put the parameters in they either don’t work or I get an error message.
I am sure there is something I am doing wrong with inputting the parameters and variables.
Take the exp:gallery:entries tag for example. Does this create a gallery or bring in a picture from the gallery? I know this may sound dumb but I am really finding it hard to understand the language used on the EE forum and the user guide.
Specifically what I would like to do now is bring in one small image of one of the recent (or most recent) entries in the photo_gallery module onto a FW page in an html item box.
If I learn how to do this I think it will help with other things as well
Thanks
Alexis
Joe Muscara
22 Jul 2008, 3:38 pmI don’t deny that at times, the EE documentation can be lacking. I have been confused by some of it myself, wondering which aspect a module may be covering.
To show a single photo that is in a gallery, you should be able to use the gallery entries tag in single-entry format as described on the second half of this page.
http://expressionengine.com/docs/modules/gallery/gallery_entries.html
Though that seems to say that is for a full-size image. If the single-entry doesn’t support smaller images, perhaps you can make the multi-entry version just show the one.
Joe Muscara
Freeway Actions and more http://t2studios.com/freeway
Alexis
22 Jul 2008, 4:07 pmThanks Joe I’ll give it a go and let you know how I get on, probs later this evening (UK). I think I’m going to have to experiment with the variables but hey, that is how I have learnt to do this. Alexis
Alexis
22 Jul 2008, 6:57 pmHi Joe
I’ve had a go. There must be something I haven’t quite understood.
I chose the exp:gallery:entries tag
Then I come unstuck. I have tried all sort of combinations of parameters. Then I don’t know which variable(s) to use. I put what the EE doc. suggested, it didn’t work.
Questions
what parameters do I need to put into an html item to call up a single image from the gallery? I want the image to be the latest entered so I don’t think entry id is relevant.
What variable calls up a particular image? Is it {image_url}? Is that all I need?
The gallery is called member images as is the category. Should it have an underscore or should it be only one word?
Thanks
Alexis
Joe Muscara
22 Jul 2008, 9:08 pmWhat I would try for the tag would be something like
{exp:gallery:entries gallery="bikes" orderby="entry_date" columns="1" rows="1"}
or
{exp:gallery:entries gallery="bikes" orderby="entry_date" limit="1"}
As far as the gallery name, you use the short name of the gallery. Look in your EE control panel, there should be a name and a short name for the gallery. Use the short name. There should be no spaces in the short name.
To show the thumbnail, you should just need something like this
<img src="{thumb_url}" width="{thumb_width}" height="{thumb_height}" alt="{title}" title="{title}" />
However, if you use the first version of the tag with the rows and columns, you may need to put those other tags shown in the multi-entry example ({entries}, {row_start}, etc.) as well.
Joe Muscara
Freeway Actions and more http://t2studios.com/freeway
Alexis
23 Jul 2008, 4:33 pmOk Joe I’m getting the hang of this. I’ve put in the exp:entries as the EE tag gallery=”images” “orderby=”entry_date” and limit=”1”
Now, in the html item box I have put in all manner of variables (getting the hang of this jargon) and so far I get a url, the size of the image, it title and so on. It is the last image put in so that’s fine.
What I cannot get is the image itself. What do I need to type in the box or anywhere else, to get this image?
Thank you for your patience.
Alexis
Joe Muscara
23 Jul 2008, 5:00 pmThis should give you the full size image
<img src="{image_url}" width="{width}" height="{height}" border="0" alt="{title}" title="{title}" />
While this should give you the thumbnail
<img src="{thumb_url}" width="{thumb_width}" height="{thumb_height}" alt="{title}" title="{title}" />
HOWEVER, you won’t be able to enter that code directly into your Freeway layout. Put the cursor where you want, then go to the Insert menu and select Markup Item… Enter the code there. There are a couple of other ways to place the code where you need it, but this is the quickest.
Joe Muscara
Freeway Actions and more http://t2studios.com/freeway
waltd
23 Jul 2008, 5:06 pmRemember, this will result in the following code being output:
<p><img src= ... /><p>
Depending on your layout, you may or may not want that wrapper P. Use the CrowBar Action[1] as a substitute for a Markup Item if you want more control over the total structure of your generated code.
Walter
On Jul 23, 2008, at 1:00 PM, Joe Muscara wrote:
HOWEVER, you won’t be able to enter that code directly into your Freeway layout. Put the cursor where you want, then go to the Insert menu and select Markup Item Enter the code there. There are a couple of other ways to place the code where you need it, but this is the quickest.
Freeway user since 1997
Joe Muscara
23 Jul 2008, 5:26 pmForgive me, Walter, for not having kept up on this Action. I just read your post about the update. Wow, this is v. cool, and I could have used this many times over the years. Where were you years ago?
(Oh yeah, in PA where you’ve always been ;) )
Joe Muscara
Freeway Actions and more http://t2studios.com/freeway
Alexis
23 Jul 2008, 5:28 pmI am getting tantalizingly close. I have used the Crowbar and put the code in. I now get a box with a question mark. Better than nothing although…
Alexis
Joe Muscara
23 Jul 2008, 5:47 pmAre you using the thumbnail or the full size image tag? If you’re using the thumbnail, I think you’ll at least need the {entries} tags around the img tag. See the EE page linked in my earlier post for details.
Joe Muscara
Freeway Actions and more http://t2studios.com/freeway
Alexis
23 Jul 2008, 7:55 pmI gringe as I ask this but when you say need the {entries} tags around the img tag do you mean…
<{entries}img{/entries} src=etcPlease do not laugh out loud. I’ve tried it and of course it does not work. I am learning code but I am still at the <> stage.
A
Joe Muscara
23 Jul 2008, 8:18 pmNo, I mean like this. Note how {entries} and {/entries} wrap the rest.
{entries}
{row_start}<tr>{/row_start}
{row}
<td>
<a href="{id_path=gallery/comments}"><img src="{thumb_url}" width="{thumb_width}" height="{thumb_height}" alt="{title}" title="{title}" /></a><br />
{title}
</td>
{/row}
{row_blank}<td> </td>{/row_blank}
{row_end}</tr>{/row_end}
{/entries}
Joe Muscara
Freeway Actions and more http://t2studios.com/freeway
Alexis
23 Jul 2008, 8:52 pmThe result now is a bordered box the size of the thumbnail with a small square with a question mark.
Its getting closer… thanks for the patience
What I’ve done is this
{entries}
Put this in the mark up item between the {}
{/entires}
the parameters are can vary but I have put
gallery=”images” orderby=”entry_date” limit=”1”
it also works the same way with rows=”” and columns=”“
Joe Muscara
23 Jul 2008, 9:12 pmWhen you view the source code in the browser, what does it say where the img tag is?
Joe Muscara
Freeway Actions and more http://t2studios.com/freeway
Alexis
23 Jul 2008, 9:20 pm<p><img src="{thumb_url}" width="75" height="75" alt="Adele Billinghay" title="Adele Billinghay" /><p>
Joe Muscara
23 Jul 2008, 9:43 pmHmmm. You must be missing something. EE is not converting {thumb_url} into a URL. You should not see any EE tags when you view the page in your browser when it’s on your EE site.
Joe Muscara
Freeway Actions and more http://t2studios.com/freeway
Alexis
25 Jul 2008, 8:39 amHi Joe
Sorry about the hiatus. Was away all yesterday.
There is no code on the page in the browser. Only the box with the blue box with question mark inside it. The box seems to be the right size for the thumbnail. I have even placed the image’s title and caption on the page nicely formatted underneath.
A
Joe Muscara
25 Jul 2008, 12:42 pmNo problem, so was I!
Can you send me the .php template file created by Freeway, as well as the web address where you are viewing the file?
If you are using the web interface of FWTalk, click on my name in this thread, that will take you to my profile and that has my email address. I think if you are receiving posts via email, click on my name in the message you received and select Reply to Sender.
Joe Muscara
Freeway Actions and more http://t2studios.com/freeway
Joe Muscara
25 Jul 2008, 9:33 pmWe figured it out. He needed to wrap the thumbnail tag in {row} {/row} tags like in the example. Something EE needed, apparently.
Joe Muscara
Freeway Actions and more http://t2studios.com/freeway