Problems, need help? Have a tip or advice? Post it here.
8 posts Page 1 of 1
Below is my code and I am unsure as to how the code should be written to make the get_custom_field should be written to make it come out as a link.

Code: Select all
   <div class="row fullwidth collapse">
      <div class="medium-5 columns left-footer">

        </div>
        <div class="medium-1 columns left-footer intern">
         <a href="<cms:get_custom_field 'facebook_link' masterpage='global.php'/>" class="facebook"></a>
            <a href="http://twitter.com" class="twitter"></a>
        </div>
        <div class="medium-6 columns right-footer">
           <p>Email: <a href="mailto:<cms:get_custom_field 'footer_email' masterpage='global.php'/>"</pa></p>
           <p>Phone Number: <cms:get_custom_field 'footer_phone_number' masterpage='global.php'/></p>
           <p>osdihjandovnsdvhsvsdnvshdvds</p>
        </div>
   </div>


    <script src="bower_components/jquery/dist/jquery.js"></script>
    <script src="bower_components/what-input/what-input.js"></script>
    <script src="bower_components/foundation-sites/dist/foundation.js"></script>
    <script src="js/min/app-min.js"></script>


</body>
</html>
<?php COUCH::invoke(); ?>
It all looks correct, but this one has a typo:
<p>Email: <a href="mailto:<cms:get_custom_field 'footer_email' masterpage='global.php'/>"</pa></p>


To further investigate possible errors, take a look at code Inspector of html (usually, right click -> inspect code) - does get_custom_field work and links are set?
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Ok so there is the question if <cms:get_custom_field doesn't work in a link what does?
DuzAwe wrote: Ok so there is the question if <cms:get_custom_field doesn't work in a link what does?

get_custom_field works, it's just a problem with something else. I can't tell where exactly out of the snippet you provided.
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
<p>Email: <a href="mailto:<cms:get_custom_field 'footer_email' masterpage='global.php'/>"><cms:get_custom_field 'footer_email' masterpage='global.php'/></a></p>

Or
<cms:set _footer_email="<cms:get_custom_field 'footer_email' masterpage='global.php'/>"/>
<p>Email: <a href="mailto:<cms:show _footer_email/>"><cms:show _footer_email/></a></p>
@cheesypoof, you have lost faith in people? Maybe he's not that bad with html, as your post suggested, but instead, innerHtml is managed by JS..? :?
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
I've made plenty worse mistakes than that my friend :)
cheesypoof wrote: I've made plenty worse mistakes than that my friend :)

So did I :lol:
Thanks for coming to this thread. Hope this little sweet chat doesn't bother anyone.:)
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
8 posts Page 1 of 1