Jump to content

Module: ImageMarker Fieldtype & Inputfield


kongondo

Recommended Posts

15 hours ago, Roych said:

<h3><a href="<?=$pages->get((int) $dot->value->url);?>"><?= $dot->infoLabel;?></a></h3>

There is no variable value in this module's API. The page id is at the variable info. So:

<? php
  
	$pageReferencedByMarker = $pages->get((int) $dot->info);
	// do something with $pageReferencedByMarker

 

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

38 minutes ago, kongondo said:

There is no variable value in this module's API. The page id is at the variable info. So:


<? php
  
	$pageReferencedByMarker = $pages->get((int) $dot->info);
	// do something with $pageReferencedByMarker

 

I think I got it 😉

<?php $pageReferencedByMarker = $pages->get((int) $dot->info);?>
<a href="<?=$pageReferencedByMarker->url?>"><h4><?= $dot->infoLabel;?></h4></a>
<?php {};?>

This works, thank you 😉

R

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...