• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Mapping•Merge submission fields into article body

Mapping•Merge submission fields into article body 10 years 4 weeks ago #30927

  • heff66
  • heff66's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Well, I've read the tutorial article and watched the video for mapping and I think I understand the basics involved in getting simple form data into a joomla article via sql field mapping.

What I'd really like to do is have the values of ALL submitted fields merged together into the article body. Essentially, we want to take a form submission and turn the entire thing into an editable article.

It seems like I am not alone in this need...I see other similar questions.

I see from another post how one might go about concatenating fields in a script to combine them together to get a single value that gets mapped to body of the article (fulltext, in this case).
 
$article_text = $_POST['form']['field1']."<br/>".$_POST['form']['field2'];//so on add all the fields
$db=JFactory::getDBO();
$db->setQuery("INSERT INTO #__content (title,fulltext) VALUES ('some article','".$article_text."')");
$db->query();
 
  1. Is what I'm asking possible?
  2. Am I using the right approach here by trying to merge all those fields and place them in "fulltext" of joomla content?
  3. Is there an easier way to get all fields into an article?
  4. Am I likely to run into any character or memory limits trying to merge this way via the PHP script?
I don't need anything fancy to begin with, just paragraphs or breaks between the fields and a simple dump of all values into an article.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!