Field type linkslist - how it supposed to work?

More
10 years 10 months ago #43753 by diamondiger
I try to use linkslist to get the list of references, but linkslist is not working as I expected.

I did not change "Field specific properties".
It is:
Code:
Title[link="#" class="list link"] :: Title2[id="myID"]

As a result, I get the following HTML code
Code:
<div class="flexi value field_field15"><ul><li link="#" class="list link">Title</li><li id="myID">Title2</li></ul></div>
This is the right result?

The point is that I was expecting to see something similar to:
Code:
<ul><li class="list link">[url=#]Title[/url]</li><li id="myID">Title2</li></ul>
And one more question. How to get code (Title) which is above using linkslist field.

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

More
10 years 10 months ago #43765 by ggppdk
Hello

-- i am sure why this field is useful, it was added by some developer, that is less active now

-- (it is the only field that we have not improved since it was added !!)


e.g. you can use
webfield
or
extendedwebfield

and use prefix/suffix/open tag/close tag to create a list


-- 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
10 years 9 months ago #43847 by diamondiger
Hello!
Thanks for the reply and sorry that I did not answer for so long.
It seems I'm a little closer to the answer.
I changed the file plugins\flexicontent_fields\linkslist\linkslist.php
Lines 140-142:
from
Code:
if(isset($attr['href'])) { $prefix = '<a href="'.$attr['href'].'">';
to
Code:
if(true) { $prefix = '<a href="'.'http://www.flexicontent.org/'.'">';
And got the following html code:
Code:
<div class="flexi value field_field19"><ul><li link="#" class="list link">[url=http://www.flexicontent.org/]Title[/url]</li><li id="myID">[url=http://www.flexicontent.org/]Title2[/url]</li></ul></div>
This is of course just plug, but shows where the problem is.
Need the variable $item is somehow pass 'href' value. But how to do it? Maybe I use the wrong syntax?

PS: If I fix the plugin then publish here the solution.

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

More
10 years 9 months ago #43848 by diamondiger
Hello again.
The problem was solved. It was in the wrong syntax.
I returned the original file:
plugins\flexicontent_fields\linkslist\linkslist.php
And change "Field specific properties" to
Code:
Title [href="http://www.youtube.com/" class="list link"]
Now I got a link as expected.
Is it possible to make a more detailed description of the field linkslist in the next version of flexicontent? So that other people do not have similar problem.

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

More
10 years 9 months ago #43929 by ggppdk
Hello

This is a list of links, it is meant to make easy the creation of list of links,

-- (it is the only field that we have not improved since it was added !!)

will see into it

Regards


-- 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.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.490 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