Flexi Fields to a Form.

More
12 years 7 months ago #19296 by igcorreia
Hello,
I am trying to do the impossible maybe you guys can help me.

I have a RSFORM being load using the FLEXI LOAD MODULE in a item view.

This items presents the following fields:
1-Name
2-Description
3-Author
4-Location
5-Fleximaps
6-Name
7-Price

And I would like to send the content via email using RSFORM.

I can already pass the CURRENT PAGE via rsform, something like:
Code:
$pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; return $pageURL;

and someting like this to the page title:
Code:
<?php echo $this->params->get('page_title'); ?>

Any ideais of hoe can I get the current page TITLE from flexi and the other fields?

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

More
12 years 7 months ago #19298 by ggppdk
Replied by ggppdk on topic Flexi Fields to a Form.
This sound like a older request for replacement tags for Flexicontent data e.g. title of current item etc.

This can be implemented this via a system plugin.

This is not available now, maybe you can try:

global $item
and then try to use it inside the RSFORM code?

I am not sure about this without testing.


-- 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
12 years 7 months ago #19330 by igcorreia
Replied by igcorreia on topic Flexi Fields to a Form.
We will try it. Hope to give some feedback soon.

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

More
12 years 7 months ago #19372 by igcorreia
Replied by igcorreia on topic Flexi Fields to a Form.
This is an example of COMMUNITY BUILDER conneted to RSFORM.
Code:
//<code> $my = & JFactory::getUser(); $db = JFactory::getDBO(); if ($my->get('id')) { $db->setQuery("SELECT `firstname` FROM `#__comprofiler` WHERE `user_id`='".$my->get('id')."' LIMIT 1"); return $db->loadResult(); } //</code>

Can you help me converting this to FC?
Instead of calling the Table from community builder we would call the title, description and a custom filed from FC. Any help?
Thanks in advanced.

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

More
12 years 7 months ago #19376 by ggppdk
Replied by ggppdk on topic Flexi Fields to a Form.
Yes you can get flexicontent fields of an item from another component e.g. com_frontpage, com_search.

First, tell me, where do you want to use the flexicontent fields?
Inside component com_rsforms in the site frontend ???


-- 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
12 years 7 months ago #19380 by igcorreia
Replied by igcorreia on topic Flexi Fields to a Form.
Yes, reform allows us to GET the variable from other components or from a Query to the SQL.

I need to Add a from to the FC item, example:
FC ITem: Cars
RSFORM FORM: Car Reservation

Basicly I added via plugin the RS FROM to the Item view of the Car.

Ths problem is this one:
How do I pass all the data from FC to RSFORM.

The Car Item has all this fields:
Name - Core - Title
Description - Core - Description
ShortDescription - Custom - Text
Group - Custom - Select
PickUpDate - Custom - Date
Location - Custom - Flexi Maps

This is all the data that the client need to receive. But because FC does not have a form I have 2 choices:
1 - Add all this filed to the form and make the user choose all over again
2 - Pass all the data to RSFORM and th user only need to add:
- Name
- Email
- Contact
- Message

But I dont know how to pass all this data to RSFORM and I cant seem to filed no one that uses RSFORM and FLEXI that could help me.

Do you understand what I am trying to do?

Another suggestion would be FC have an FC Field called MiniForm (mini because it is the 1st version :D ) and this form could be added to the template as any field and the only filed in the form to fill would be:
- Name
- Emails
- Contact
- Message

We have already 10 websites with flexi and all of them have a custom made form. If we could pass all the value from flexi to the from would be great.

ps: I know you have enough to do, just a suggestion :D

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.297 seconds
Save
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