Building with concrete5

Adding a block from within a stack into theme (hardcoded)

Hi all, I have seen this pop up a few times around the forum but they all seem to be older posts (I apologise if I have missed something). I have a stack which houses all my default theme blocks that will appear in different areas of my site and I w…

What is the URL of a html page within C5

This should be simple - shouldn't it? I have a htm file uploaded into my theme directory called "launch_pad_calendar_iframe.htm" I want to put this inside an iframe. What would the URL be? because when I put www.mysite.co.nz/launch_pad_calendar_…

URL variable on login/logout

Hi, I'm trying to setup a workaround for another issue and need to use a URL variable like: /login/logout?page=abc However, I guess because it gets redirected to the login page the URL variable goes away. Is there an actual logout page that I can re…

5.6.0.1 Autonav classes are blank

Hi, fresh install of 5.6.0.1. Stock site, autonav is not displaying any classes. It is showing class="" for both li's and a href's. Any ideas why the classes aren't populating? Also, just to check, I tried Jordan's awesome autonav view.php code and it …

Hide div if current user is not page owner

Hi, Is there a way to only show a div to the page owner? I want the general page to be viewable by everyone (therefore permissions seem to be out of the question) and only show a certain div when the page owner visits that page. Some along the line…

Permissions not working immediately

I have some code added to a page that automatically adds a user to a specific group: [code] $g = Group::getByID(5); $u = new User(); $u->enterGroup($g); [/code] The code is working but the permissions for that group aren't taking affect until af…

getThumbnail not working on an attribute object

HI, why, oh why, this is not working? [code] if($c->getAttribute('product_icon')) { $icon = Loader::Helper('image'); $icon->getThumbnail($c->getAttribute('product_icon'), 128, 128); echo ''; } [/code] While this is working as …

Admin group can't see all File Manager files

I've recently updated to 5.6.0.1 and turned on Advanced Permissions. As far as I can tell, I've set the permissions so that everyone in the administrators group should be able to see all the files in the File Manager. But right now only the superadmin …

Add user to group when they visit a certain page.

Is it possible to add a user to a particular group when they visit a specific page? How could I set this up? EDIT: I was able to get the user added to the group by doing this: [code] $g = Group::getByID(5); $u = new User(); $u->enterGroup($g); […

Filter Posts