Link and pass variables via query string

More
13 years 7 months ago #20029 by igcorreia
Hello, I have made a complex type of content with 20 custom fields, how can add a CUSTOM link for example:
" www.bookings.com " and add all the fields to a query string example:
" www.bookings.com/search.php?local=newyork?type=luxury?stars=5 ?..........."

This is what I like to create a custom link and pass the variables via query string. Any ideas?

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #20042 by ggppdk
To do this you must first say WHERE you create the link.

I mean if you are creating the link
-- inside flexicontent
-- and if inside flexicontent which frontend view (e.g. category view, items view, tags view)

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #20045 by igcorreia
I mean I have an Item (article view) and I want to pass a few variables to another site.

I was thinking on creating a custom TEXT FIELD and put
Code:
<a href="www.google.com/search?word={item->title}&anotherword={item->description}" >{item->title}

Something like this.

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #20054 by ggppdk
I see for this we could extend the existing weblink field BUT, what you suggest is easy to do in your template file:
item.php

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #20058 by igcorreia
Yes.
This are 3 examples of uses for this feature:

1 - Booking Engines: will allow to pass the vars like type o house, location, stars, ...
2 - Jobs listings: again location, opportunities, event name, available seats, ...
3 - Events: location, type of event, month,...

I think in the item view is just easier like you say.

Could you please right an example for me? Because I am not sure of how to do it.

is this correct?
Code:
<a href="www.google.com/search?word={item->title}&anotherword={item->description}" >{item->title}

Please Log in or Create an account to join the conversation.

More
13 years 7 months ago #20061 by ggppdk
For v1.5.4/v1.5.5 use:

$this->item->fields->display;

For v1.5.6
-- put field in renderonly position of template
OR in global configuration set to always create fields in item view
-- AND then use the same as above syntax for v1.5.4/v1.5.5


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.393 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save