i have cms made simple usng fckeditor as the wysiwyg editor for content. i have put this code on my page:
{if $ccuser->loggedin()}
Welcome To The Promo Section
{else} Please Login Here{/if}
but its changing it to this
<p>{if $ccuser->loggedin()}</p>
<p>Welcome To The Promo Section</p>
<p>{else} Please Login Here{/if}</p>
which is causing errors. How can i get around this so leavs the if statment alone for "->"
Related
I would like create report in odoo but the page information not in header or footer. I'm using <span class="page"/> of <span class="topage"/>. It's work if that code inside <div class="header"/> or <div class="footer"/>. But I get tricky case, that is page number must show in table or anywhere except footer or header. Anyone can help me please?
Accessing the current page (page) and the number of pages (topage) outside of headers and footers is not yet available.
As commented by the wkhtmltopdf maintainer on june 2020
Although this is obviously good to have, I'm not sure how it can be implemented right now -- the focus right now is upgrading the browser engine (read the project status), this will come after/if it gets upgraded.
The feature will come after upgrading the engine browser
You can see that feature requests like global variable for page number are still open
In older version of prestashop (1.4) I would use <img src="{shop_logo}">
but in current version (1.6.1.4) when I use this syntax it automatically turn it to <img src="http://t.clicktoamerica.com/admin1/{shop_logo}">
(ie it adds the shop domain and admin path)
and the logo is not displayed.
What is the correct syntax to add a logo in emails ?
EDIT
The syntax <img src="{shop_logo}"> is correct however because of a bug the domain is added when editing with the TinyMce editor, therefore a simple by-pass is to edit the emails html files directly (with external editor)
The question remain - how to solve this bug?
In js/admin/tinymce.inc.js
find the line: relative_urls:false and change it to relative_urls:true
I am currently working with Prestashop right now, I have a modified skin but I found out my Login button does not change from "Login" to "Logout" if I'm not signed in. Now I tried to dig through the hierarchy to look up where the name is defined, but could not find it. To view a live preview of my website you can visit
this link.
If anyone could tell me how I can edit the navigation menu, or better yet the login status of my navigation button, that would really help me along. Thanks for the assistance :).
Greetings J.I.N.
It may depends on the Prestashop version and the module you are using, but with the blockuserinfo module it works like this (in Prestashop 1.5):
{if $logged}
{l s='Log out' mod='blockuserinfo'}
{else}
{l s='Login' mod='blockuserinfo'}
{/if}
I got this "Your Follow Button plugin code:" from my Facebook Developers page, but do not know how to place it in my Facebook Page.
The pop up window gave me this:
Include the JavaScript SDK on your page once, ideally right after the opening tag.
And than bellow:
Place the code for your plugin wherever you want the plugin to appear on your page.
I am not savvy at all about this. I tried to place this code in my question, but got "Oops! Your question couldn't be submitted because:" Can someone help me, please?
you can't put the "follow button" directly onto your facebook page (aka timeline).
the social plugins can only be used in combination with your own website. copy/paste the correspsonding JS SDK code to your website and everything's working as expected!
I've implemented a "Skip to Content" link on my site and hidden it off screen (except when :focused). However, I've noticed on some pages where I haven't explicitly defined a meta description, Google picks up "Skip to Content" for its preview snippet in search results.
Is there a way to format or mark text that shouldn't be used in a search snippet? My case is a skip to content link, but I can imagine other similar needs. However, in this case, it must remain accessible (so no display:none, etc.).
I supposed what I'm looking for is some version of rel="nofollow" but for the next and not just the link.
tl;dr: "Skip to content" link appears in search snippets. That's not desired.
I don't think there is such a way for the general Google search.
Google allows customers of their Google Search Appliance and Google Mini products to state which content should be ignored for the search by using googleoff and googleon in HTML comments; see Excluding Unwanted Text from the Index. But this doesn't work for the public Google search, of course.
I think the bestway to try to prevent that problem would be to use a meta description: http://support.google.com/webmasters/bin/answer.py?hl=en&answer=79812
<meta name="description" content="A description of the page" />
it must remain accessible (so no display:none, etc.)
Well, if you're OK with using JavaScript, you can still use style="display:none" in your div or span tag and add the following to your JS file:
$(document).ready(function() {
document.getElementById('skip').style.display = "block";
//Or shorter with jQuery
$('#skip').show(); //Alternatively: fadeIn()
});