tropiland Posted October 23, 2007 Posted October 23, 2007 how do I add a text link to another osC page?
spax Posted October 23, 2007 Posted October 23, 2007 Something like: <a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>">Home Page</a> Add in the SSL call if it needs to go through a secure connection, plus the link text constant if you use multi languages. <a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> Or you can do it this way <?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . HEADER_TITLE_MY_ACCOUNT . '</a>'; ?> If you want to change the appearance of the links, create a new rule in the stylesheet and call it in the link. <?php echo '<a class="newRule" href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a>'; ?> Look in includes/filenames.php for a list of all the filename constants and in includes/languages/english.php for the text constants.
tropiland Posted October 23, 2007 Author Posted October 23, 2007 Something like: <a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>">Home Page</a> Add in the SSL call if it needs to go through a secure connection, plus the link text constant if you use multi languages. <a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> Or you can do it this way <?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . HEADER_TITLE_MY_ACCOUNT . '</a>'; ?> If you want to change the appearance of the links, create a new rule in the stylesheet and call it in the link. <?php echo '<a class="newRule" href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a>'; ?> Look in includes/filenames.php for a list of all the filename constants and in includes/languages/english.php for the text constants. great thanx for the help!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.