Quantcast
Channel: c5mix Blog » Tips
Browsing latest articles
Browse All 6 View Live

If User is Logged in, Display or Do This

Sometimes, when building a theme for concrete5 you might need to display some text or code that appears when a user is logged in to their site. Here is how you do that: <?php global $u; if ($u ->...

View Article



If Site is in Edit Mode, Display or Do This

If you need to display or do something in your concrete5 theme when the site is in edit mode, use this code: <?php global $c; if ($c->isEditMode()) { ?> Do something here <?php } ?>

View Article

Using Page Attributes in Concrete5 Themes

There will times in developing a concrete5 theme when you will want or need to display a Page Attribute with the theme files. One use of this would be to display the page name within an H1 tag at the...

View Article

Concrete5 Code Snippets Dreamweaver Extension

Katz515 (a member of the Usagi Project – Japan’s concrete5 group) just posted a concrete5 code snippet Dreamweaver Extension in the concrete5 forums. I already downloaded it and it’s a great little...

View Article

Concrete5 Cheat Sheet

Peter Vernaglia over at Weblicating has put together a great little cheat sheet of concrete5 code snippets. There’s some very helpful stuff in there. I totally recommend checking it out and bookmarking...

View Article


Display a Page’s Grandparent Page Name in Concrete5

On a recent site I was working on I needed to be able to display a page’s grandparent page name on that page. I wanted to be able to have it display automatically so the end user would not have to add...

View Article
Browsing latest articles
Browse All 6 View Live




Latest Images