Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] Nested Links in Collections Grid

Nested Links in Collections Grid 27 Apr 2014 20:01 #12414

  • rholzler
  • rholzler's Avatar
  • Offline
  • Junior Member
  • Posts: 30
  • Thank you received: 1
  • Karma: 0
I found that links in my front end and back end collections pages all have nested links (i.e. one link inside another). See below for an example:

Front End
<a class="modal " style="cursor:pointer;" href="/mediaplayers/mediaplayer/editmediaplayer.html?cid[0]=1&tmpl=component" target='modal' rel="{handler: 'iframe'}"><a class="modal " style="cursor:pointer;" href="/mediaplayers/mediaplayer/editmediaplayer.html?cid[0]=1&tmpl=component" target='modal' rel="{handler: 'iframe'}">Item 1</a></a>

Back End
<a style="cursor:pointer;" href="/administrator/index.php?view=mediaplayer&layout=location&cid[]=3&option=com_media" target='_self'><a style="cursor:pointer;" href="/administrator/index.php?view=mediaplayer&layout=location&cid[]=3&option=com_media" target='_self'>Item 1</a></a>
The administrator has disabled public write access.

Nested Links in Collections Grid 03 Aug 2014 13:52 #12567

  • VentoStudio
  • VentoStudio's Avatar
  • Offline
  • New Member
  • Posts: 11
  • Thank you received: 2
  • Karma: 0
I have a similar problem,
Links are not nested but duplicate
the first is empty
the second is ok
here is the code generated in the grid view
<a href="/sandbox/cms25/index.php/component/demo11407/firma/wizytowka?cid[0]=3" style="cursor:pointer;"></a>
<a href="/sandbox/cms25/index.php/component/demo11407/firma/wizytowka?cid[0]=3" style="cursor:pointer;">Item name</a>
if anyone else has met this problem and might know how to solve it?
The administrator has disabled public write access.

Nested Links in Collections Grid 05 Aug 2014 12:54 #12569

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
I think this comes from JDom.
Can you describe better the context please ?

Can you copy the JDom call please ?
Coding is now a piece of cake
The administrator has disabled public write access.

Nested Links in Collections Grid 05 Aug 2014 13:07 #12571

  • VentoStudio
  • VentoStudio's Avatar
  • Offline
  • New Member
  • Posts: 11
  • Thank you received: 2
  • Karma: 0
this what is in my default_grid.php
<h2>
<?php echo JDom::_('html.fly', array(
	'dataKey' => 'nazwa_firmy',
	'dataObject' => $row,
	'route' => array('view' => 'firma','layout' => 'wizytowka','cid[]' => $row->id)
));?>
</h2>

and this is a title of my item and it links to detail view


Here is a list view,
See the links in the titles of items

demo.tezi.pl/index.php?option=com_katalo...jewdztwo=&Itemid=608

This same problem applies to links that are at the logo - picture
Last Edit: 05 Aug 2014 13:12 by VentoStudio.
The administrator has disabled public write access.

Nested Links in Collections Grid 05 Aug 2014 16:01 #12574

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Ok, I have fixed in JDom.

You can upgrade manually :
libraries/jdom/dom.php

from the github repository:
github.com/Cook-Self-Service/JDom/edit/master/jdom/dom.php

The fix is not included in the builder yet

another possibility is to use another namespace :
instead of
'html.fly'
use
'html.fly.default'

Hope it helps.
Coding is now a piece of cake
The administrator has disabled public write access.

Nested Links in Collections Grid 05 Aug 2014 16:59 #12575

  • VentoStudio
  • VentoStudio's Avatar
  • Offline
  • New Member
  • Posts: 11
  • Thank you received: 2
  • Karma: 0
Thank you,
the problem is almost solved :-)
I updated manually dom.php
and changed
'html.fly.default'
to
'html.fly.default'
It works with Title
but the link at the picture is still link is duplicated
<div class="firma-box-left">
	<a href="/index.php?view=firma&amp;layout=wizytowka&amp;cid[]=2&amp;option=com_katalogbiznesu&amp;Itemid=608" style="cursor:pointer;"></a>
	<a href="/index.php?view=firma&amp;layout=wizytowka&amp;cid[]=2&amp;option=com_katalogbiznesu&amp;Itemid=608" style="cursor:pointer;">
		<div style="width:px;height:px; overflow:hidden;display:inline-block;" class="img-zone">
			<img style="" alt="Alf. Hotel przedsiębiorstwa Chemobudowa Kraków S.A." title="Alf. Hotel przedsiębiorstwa Chemobudowa Kraków S.A." src="/index.php?option=com_katalogbiznesu&amp;task=file&amp;size=195x145&amp;attrs=center,format:png&amp;path=[DIR_FIRMY_LOGO]/alf.png"
		</div>
	</a>					
</div>
The administrator has disabled public write access.

Nested Links in Collections Grid 05 Aug 2014 20:02 #12578

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Sorry...

I changed again soething important in JDom engine.
Now the fallbacks are completly loaded differently.

Whatever is your issue still there, please upgrade again because it was wrong way of doing.
Here the new version, again:
github.com/Cook-Self-Service/JDom/edit/master/jdom/dom.php

If you still have an issue, please post your complete JDom call.
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.090 seconds

Get Started