Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

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>

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

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

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?

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

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

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

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

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

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

Last edit: by VentoStudio.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

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

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

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>

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

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

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

  • Page:
  • 1
Time to create page: 0.145 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started