[Plugins] Link content inside Flexicontent

More
16 years 1 month ago #3283 by ComposerRyan
WOW!!! This plugin is simply amazing and was EXACTLY what I was looking for. This should actually be a permanent plugin.

There was one thing I noticed:

When accessing my article from my category it generated like this (with Joomla SEF URLs enabled):

www.mysite.com/video-games/item/ ... cific-rift

But when I click on it through the plg_flexicontent_fields_selectflexiitem_v02.zip plugin it looks like this:

www.mysite.com/video-games/item/92

I guess it's no big deal...but it leaves off the "-motorstorm-pacific-rift" part. Is there anyway that could be fixed?

Thanks a lot again for this AMAZING plugin that extends the functionality of Flexiconent even further!

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

More
16 years 1 month ago #3285 by ComposerRyan
I did notice another problem when using plg_flexicontent_fields_selectflexiitem_reverse_v02.zip

1) How can I order them by date?

2) Also, can I include the intro text and assign # of characters before it says "read_more"

3) And how can I display the date of the article as well? This part is no big deal, but would be an added bonus!

The reason I request this is because you can display news now INSIDE of an article, which is exactly what I need! I was disappointed to see that it sorted by name only and not date...plus, there was no intro text. :(

If you could some way add these elements to it, that would be amazing. Thank you again for this plugin.

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

More
16 years 1 month ago #3291 by conquerlol
Hello,

First of all thank you so much for this plugin, now i can link my articles around. :mrgreen:

I have a suggestion/request...can you make it so that we can show one of the field from the selected article instead of the title? I made an image field in flexi for the type so I wanted to show that instead of the title link to it. Like you want to show the face of the singer so people can easily see instead of the title. How about multiple fields, like the image and then title below it.
If someone point me to the right direction as to how to do that, it would be helpful too. :D

Also, if you use the plugin on the same type, it won't work? Like you can't link your singers to your singers.

The plugin is great, thanks again.

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

More
16 years 1 month ago #3296 by yopyop001
Hi,

First, thanks for your feedbacks.

I think i will wait for the Flexicontent stable release to update the plugin. But i keep your request in my mind.

@ComposerRyan

1) How can I order them by date?


In the selelect_flexiitems_reverse parameters, you can choose in what order the items are displayed. May be you have to clean the cache after you modify this parameter. But it's working for me.

2) Also, can I include the intro text and assign # of characters before it says "read_more"


It'll be great to can choose in the plugin parameters all the fields we want to display. But i'm waiting for the next Flexicontent version to see if there is a simple way to do that.

For now, i think you can use the Include content Item plugin from kksou ( www.kksou.com/php-gtk2/Joomla/Include-Co...em-plugin.php#fadein ) to display introtext and readmore Link.
In the selelect_flexiitems_reverse parameters, you have to choose : 'Trigger content plugins' : yes and select 'Include-Content-Item', Display : 'Value', Add a link : 'No'; Prefix : {include_content_item Suffix: "params_of_include_content_item" }
I didn't test this solution, but it is an idea

3) And how can I display the date of the article as well? This part is no big deal, but would be an added bonus!


Same answer that 2). I will have a look at this

@conquerlol
For your suggestions, i'm agree with you : as for questions of ComposerRyan, it will be great to choose the fields we want to display, but i had a look at this, and i didn't find a good method.
I think we can load fields directly in the template. But just wait for the next Flexicontent release to see if there is a generic way to do that.

if you use the plugin on the same type, it won't work?

It works for same type items. (you can just link article together, if you want)


I hope my english is understandable,
Rgds

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

More
16 years 1 month ago #3301 by ComposerRyan
yopyop001, thank you for the reply.

I don't think that plugin that displays content will be of much use simply because I want to display more than one content item from a category...like a category blog layout.

Also, when will we see the next version of Flexicontent and will I be able to upgrade my BETA5 version that I currently have? I really hope so. :)

Thanks again, and yes, your English was very good.

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

More
16 years 1 month ago #3528 by ComposerRyan
So far, the plugin is working great but it does have a problem with its URLS...please read:

This applies to the /plugins/flexicontent_fields/selectflexiitem_reverse.php file and the selectflexiitem.php file

The URLS do not display the article's alias in the URL...it grabs the URL like this somehow:

$link="<a href=\"".JRoute::_(FlexicontentHelperRoute::getItemRoute($result->value))."\" >";


Currently, it only displays the article number and leaves off the article's alias like this:

www.mysite.com/category/item/107


when I need it to look like this (notice the article's alias is on the end)

www.mysite.com/category/item/107-article-alias-here


...how would I put its alias on the end of it? I am very, very new to this coding stuff and would appreciate the help! :)

By the way: I used this new route.php file that Emmanuel provided here:
www.flexicontent.org/forum/index ... =viewtopic

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

More
16 years 1 month ago #3534 by yopyop001
Hi,

Yes, it was on the TODO list for next update.

I will update soon the plugin but for now you can modify the query on the DisplayFieldValue fonction :

In the select_flexiitem.php
Code:
$field_elements= 'SELECT DISTINCT i.id as value, i.title as text, i.catid as catid,' .' CASE WHEN CHAR_LENGTH(i.alias) THEN CONCAT_WS(\':\', i.id, i.alias) ELSE i.id END as itemslug' .' FROM #__content as i' .' LEFT JOIN #__flexicontent_fields_item_relations AS fi_rel ON i.id=fi_rel.value' .' LEFT JOIN #__flexicontent_cats_item_relations AS rel ON rel.itemid = i.id AND rel.catid=i.catid' .' WHERE fi_rel.field_id='.$field->id .' AND fi_rel.item_id='.$item->id .$orderby ;

and change the line
Code:
$link="<a href=\"".JRoute::_(FlexicontentHelperRoute::getItemRoute($result->value))."\" >";
By
Code:
$link="<a href=\"".JRoute::_(FlexicontentHelperRoute::getItemRoute($result->itemslug)) ."\" >";

For the select_flexiitem_reverse.php file, you have to adapt the query on the same way (add
Code:
.' CASE WHEN CHAR_LENGTH(i.alias) THEN CONCAT_WS(\':\', i.id, i.alias) ELSE i.id END as itemslug'
on the query and load result->itemslug to generate the link.

I hope it'll work.
Rgds

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

More
16 years 3 weeks ago #3640 by micker
la mega classss !
bravo

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
16 years 3 weeks ago #3683 by vlester
Excellent ! Just what I needed to show an author link.
Thanks a lot.

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

More
15 years 11 months ago #4756 by vlester
Hello,
I also noticed a problem with the sef url using this plugin (not the same problem than ComposerRyan: the alias of my articles display in a correct way):
I have created a category "Authors" to link authors to their articles with this plugin.
When I create a new author (new item with a type "author"), there is the name of a menu added in front of the url. Not always the same menu. Whatever, this menu is not at all related with this author and should'nt be here. And also, the url of the articles linked to an author changed in the same way.
For example what shoud be :
wwww.mysite.fr/category-authors/eric-gallo
is
wwww.mysite.fr/menu-that-shoudnt-be-here/categroy-authors/eric-gallo

I created a flexicontent menu on my front page linked to the category "authors" and it solved the problem: now my url become wwww.mysite.fr/menu-authors/category-authors/eric-gallo
But in the back-end, when I go to the component AceSEF/Sef Urls, there are now two sef url created (the one with the weird menu and the correct one) for each article created with this plugin activated.
I can delete them one by one or just let them be there I guess. I just wanted to notice you the problem.

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

Moderators: vistamediajoomlacornerggppdk
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