Please read and follow the COMMON ISSUES first!
Always add your version information in every new post! Thank you!

Form2Content Forum

Questions and answers for Form2Content, a Joomla CCK.
  1. Timothy Brown
  2. F2C Content type settings
  3. Monday, 03 December 2018
  4.  Subscribe via email
I have basically everything working as wanted to create an article from a form. My only issue being that a particle on the front page of my site needs to know the image in my article is the "intro image" and also the "alt" field content for that image (which is a consistent same value). I tried lots of ideas from forum posts but can't seem to make it work.


Presently the code I'm using is this:


{if $IMAGE}<img src="/{$IMAGE}" alt="{$IMAGE_ALT}">{/if}


But that doesn't seem to give the ALT value I want or have the particle on the front page recognized the added image as the intro image.

Can someone advise?

You can see it in action at:

a.leftheel.com
Responses (4)
Accepted Answer Pending Moderation
Hi Timothy,

Can you explain me what a "particle" is?
Is the front page a single Joomla article created with F2C?

I also noticed a discrepancy in the documentation (between the pdf an field pages). Can you try: {$FIELDNAME_ALT_TEXT}

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  1. more than a month ago
  2. F2C Content type settings
  3. # 1
Accepted Answer Pending Moderation
Ok so a particle (its a Rockettheme/Gantry term) in this case would be the same thing as a module used to display my articles....

So from your instruction if "Photo" is the alt text I want recognized you want me to try:


{if $IMAGE}<img src="/{$IMAGE}" alt="{$IMAGE_Photo}">{/if}


That didn't seem to work, although I can see how it might provide the right alt-text I want i don't see how it identifies whether the pic is main image or intro image?
  1. more than a month ago
  2. F2C Content type settings
  3. # 2
Accepted Answer Pending Moderation
When you display an article it's exactly that, a 100% Joomla article. Form2Content created it but has no more influence afterwards. Smarty code won't be rendered.

Usually if you want to link 3rd party modules to article data you can link an image from Form2Content to the article image field. The module will recognise the article image and use it. This can be done via the F2C Content Type settings.

A 3rd option is to use F2C Anywhere plugin. This plugin allows you to "paste" any F2C content anywhere, including using Smarty logic.
https://www.form2content.com/download/f2c-plugins/f2c-anywhere-2-3-2-for-joomla-3-x-j30

Hope I understand your situation correct and this shelps.
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  1. more than a month ago
  2. F2C Content type settings
  3. # 3
Accepted Answer Pending Moderation
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  1. more than a month ago
  2. F2C Content type settings
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.