Form2Content Forum

Questions and answers for Form2Content, a Joomla CCK.
  1. Volker Selzner
  2. Form2Content Lite & Pro
  3. Tuesday, 08 January 2019
  4.  Subscribe via email
Hi there....

I use the default Joomla Tags to categorize my articles.... now I'm looking for a way to filter the articles in the f2c front-end article manager by tags, so its easier to find the right articles....

you have any ideas?

thanx

volker
Responses (10)
Accepted Answer Pending Moderation
Hi Volker,

I understand your question. We use the Joomla article manager as basis so in theory this is possible as it has it in the back-end.
The challenge at the moment is that tags have been added later and not always nicely. Currently for Joomla 4 the tagging component has been changed a lot under water. This has given Julien a headache and cost a lot of time (once again) to solve.
This means that for J3 it won't be added and we will place it on the wishlist for Joomla 4 version. I hope you understand.

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 1
Accepted Answer Pending Moderation
Hello everyone,

a follow-up question (I do use Joomla 3.9.5 and F2C Pro 6.17.4): Do Joomla tags (for categorizing articles, not meta tags) or any other tagging system work with F2C Pro right now in general? It states in the F2C comparison chart "Integrates with Joomla TAGs" for the pro version.
However, when I add tags to an article in the joomla backend (just to be sure in both the Joomla article manager and the F2C article manager), enable tag visibility (Show) and add {$TAGS} from the "Joomla field parameters" to my article template, instead of tags it shows the word "Array" in the expected location in the article.

I found older postings about the F2C_TAGS field, but I guess this way doesn't exist anymore as I can't find the field type in the backend or documentation.

Eventually I would like to allow users to use tags as a filter in F2C search. Could that be done through a database multi-select list?

Best regards,
Sebastian
  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 2
Accepted Answer Pending Moderation
Hi Sebastian,

Have you tried copy pasting the example code from the post you refer to? i.e from the answer there.

Tags are stored as an array as it can be more than one value. We did change the name from F2C_TAGS to TAGS but I do believe both work. Anyway, try this code.

{foreach from=$TAGS key=k item=i}
<p>{$i}</p>
{/foreach}

Hope this helps,

regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 3
Accepted Answer Pending Moderation
Hi Patrick,

works like a charm, thanks! Should've tried that myself, but I had thought the solution was "outdated". Can you give me a hint regarding the F2C search integration (see question above)? Haven't bought the plugin yet, but I'm planning to do so and being able to use tags within the search would be "nice to have".

Furthermore: is there a code to assign a custom location to the joomla article rating in the template?

Thanks again!
Sebastian
  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 4
Accepted Answer Pending Moderation
Hi Sebastian,

Glad that worked.

It's currently not possible to use tags in F2C Search. The tagging system isn't the most stable in Joomla and I do believe they will update it in J4 also.

I would have to talk to our programmer to see if it is at all viable to add it to search. If so it would be for J4. On occasion we also do paid implementation but again I would need to verify.

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 5
Accepted Answer Pending Moderation
Concerning the custom location for the rating. That can be achieved by using third party content plugins for rating. Simply add the plugin syntax to your template (Do read the docs on how to do this!!)
https://documentation.form2content.com/f2c-plugin-examples/6-using-joomla-plugins-with-smarty
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 6
Accepted Answer Pending Moderation
Hi Patrick,

thanks again for your quick reply! I guess being able to search for tags would be an interesting feature for other users as well, especially in websites where categories don't work well because many articles would belong to several categories at the same time. I'd love to see it in a F2C-Joomla 4 Update (understandable, that you won't implement features for a system that might change with the upcoming major release)!

Regarding the ratings: I guess I'll leave it like it is then as most extensions in the JED ratings&reviews category haven't received updates for years... it's not worth risking it. ;)

Best regards,
Sebastian
  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 7
Accepted Answer Pending Moderation
Hi Sebastian,

Instead of using tags you can also use multi-select lists or multi-select database lookup field ... those you can search on ;)

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 8
Accepted Answer Pending Moderation
Hi Patrick,

an interesting idea! I'm going to give it a try. I like the Joomla default pages that when you click a tag show all other articles with the same tag, but I think I could either replicate this in F2C or copy/sync the tags from the F2C multi-selects to "original" Joomla tags and link the F2C "tags" to the respective Joomla pages.

Best regards,
Sebastian
  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 9
Accepted Answer Pending Moderation
Just to share my solution with others who are interested in searching for tags:

1) You need a content type field "Database Lookup (multi select)"
2) Assign the SQL query
SELECT alias, title FROM #__tags WHERE alias != 'root'

(the last addition excludes the "root" tag from the list)
3) access the tags from within your template via
{foreach from=$<fieldname>_VALUES key=k item=i}
<li>
<a href="/component/tags/tag/{$k}">{$i}</a>
</li>
{/foreach}

to get an unordered list of tags which are linked to the Joomla overview pages that show all articles with the respective tag. Don't forget to replace <fieldname> with the name of your multi-select field. Apply styles as you like. Define the tags as you would within Joomla without F2C.

I haven't implemented the search yet, but this should be easy from here.

Best regards,
Sebastian
  1. more than a month ago
  2. Form2Content Lite & Pro
  3. # 10
  • Page :
  • 1


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