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


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

Hi Alex,

What ways have you tried? Did you use the Other… option in the Action to add them?

Joe


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

Thanks 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


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

I 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.


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

Thanks 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


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

Hi 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


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

What 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.


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

Ok 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


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

This 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.


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

Remember, 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

  1. http://freewaypro.com/actions/downloads/CrowBar.fwaction

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.


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

Forgive 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 :wink: )


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

I 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


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

Are 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.


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

I gringe as I ask this but when you say need the {entries} tags around the img tag do you mean…

<{entries}img{/entries} src=etc

Please 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


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

No, 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>&nbsp;</td>{/row_blank}

{row_end}</tr>{/row_end}

{/entries}

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

The 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 {}
{title}

{/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=""


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

When you view the source code in the browser, what does it say where the img tag is?


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

Adele Billinghay


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

Hmmm. 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.


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

Hi 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


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