Jump to content

URL and multiple language versions


kamil
 Share

Recommended Posts

Hello everyone,

in the first line I need to say, that I am NO developer or programmer.

I am just a german language translator and interpreter who is seeking for help.

The freelancer who created a website (


I have tried to change the code in this line: <a href="'.$page->siteurl.'">. I managed to get the link work but just for one language. If I changed the language version the link showed me always the same version.

Can someone tell me if someone like me without any knowledge in this matter can handle it to get this thing done?
 
fix a problem with 'SEO boxes' visible here http://berlineo.com/pl/oferta/tlumaczenia-pisemne/''>http://berlineo.com/pl/oferta/tlumaczenia-pisemne/'>http://berlineo.com/pl/oferta/tlumaczenia-pisemne/ at the bottom (looks like radio button); the code was copied from the home page, where these SEO buttons are OK; I need this section to be usable wherever I wish to paste it;

Can sombody tell me the reason for this and help me fix it?
Thank you in advance!
Edited by LostKobrakai
When using fancy formatting, then please do also consider using code locks.
Link to comment
Share on other sites

not sure, i've never seen siteurl as a parameter, and i don't see that in the cheatsheet; also don't you need to reference the $item->url?

<section id="technology">
    <h1><?php echo __('services-and-technologies'); ?></h1>

    <h2><?php echo __('services-and-technologies-heading'); ?>.</h2>

    <ul class="centering-block">
        <?php
            foreach($page->services as $item) {
                echo "<li>
                        <h3>$item->title</h3>
                        <p>$item->textContent</p>
                        <a href='$item->url'>
                        <p>$item->title</p>
                    </a>
                    </li>";
            }
        ?>
    </ul>
</section>
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
 Share

×
×
  • Create New...