Weblink with anchor feature

More
14 years 9 months ago #3307 by PixelZombie
Hey Guys,
since google is indexing anchor links linke shown in the attachment it would be great if the weblink field could have an anchor option.

[attachment=0:1wlg1pbw]<!-- ia0 -->anchor.jpg<!-- ia0 -->[/attachment:1wlg1pbw]

That way we could build that wikipedia like table of thing.
I tried to modify the field myself but theres some strange sef-url generation in the weblink field.

Rock on! :)
Attachments:

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

More
14 years 9 months ago #3313 by PixelZombie
Okay I modified the weblink myself to turn it into an anchor link field:

change line 274 in joomla_root/plugins/flexicontent_fields/weblink.php to:
Code:
$field->{$prop}[] = $value ? '<a href="' . $value['link'] . '" title="' . $value['title'] . '"' . $target . '>'.( $usetitle ? $value['title'] : $this->cleanurl($value['link']) ).'' : '';
In that way the link is displayed without the JRoute sef-thing.

It would be great if I could make an easy installable package of this field but I don't know enough about that kind of stuff. It would be great if there was some kind of plugin / field installation option within flexicontent.

Greetings

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

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