This post doesn't exist anymore!

child page link

Feed 3 posts, 2 voices

Avatar
0 posts

Hi,

I have a “About Us” page and a child of this page “FAQ” with slug “faq”.
My problem is that I can’t create a direct link to “FAQ” child.

I have this code:
<span><a href=”“ onmouseout=“MM_swapImgRestore()” onmouseover=“MM_swapImage(‘Image8’,’‘,’<?php echo URL_PUBLIC; ?>public/themes/normal/images/dn_faq_over.png’,1)”><img src=”<?php echo URL_PUBLIC; ?>public/themes/normal/images/dn_faq.png” alt=“intrebari frecvente” name=“Image8” width=“241” height=“81” border=“0” id=“Image8” /></a></span>
is a rollover image.

In href statement I’ve tried <?php echo $this->find(‘faq’)->content(); ?>, <?php echo $this->slug(‘faq’); ?> and the simple way ?faq.html … no good.

Any help? Thank you

P.S.: How can I get rid of the ? from url’s. The method define(‘USE_MOD_REWRITE’, true); from config.php and renaming _.htaccess to .htaccess, seems not to be working fine because I get the 404 Page Not Found…

 
Avatar
541 posts

try something like:

<?php echo $this->find('faq')->url(); ?>