Edit and dashboard not showing
I'm new to concrete5 and used this link -http://www.concrete5.org/documentation/how-tos/designers/converting... - in an attempt to convert my site.
I can see my site but I can't edit it. No edit button or dashboard button shows? Does anyone know where I've gone wrong?
Add the following right before your ending </body> tag to have the cms include all necessary js:
<?php Loader::element('footer_required'); ?>
The how-to you are following is outdated and doesn't apply in a few aspects. For a better how-to, see this one (but disregard any information regarding scrapbook, as that is deprecated): http://www.concrete5.org/documentation/how-tos/designers/making-a-t...
First things first: I recommend you another tutorial, which is a bit more hands-on in my oppinion.
I have a guess, that you might have made a mistake in loading the 'header_required' and 'footer_required' elements. These are the files, that need to be loaded, for the editing interface to show. You can have a look at the default themes ( <your_c5_root>/concrete/themes/default/elements/ ) to see, how they are loaded exactly, but here they are anyway, for your convenience:
<html> ... <head> <?php Loader::element('header_required'); ?> ... </head> <body> ... <?php Loader::element('footer_required'); ?> </body> </html>
The above is to show you where to put these lines of code: right after <head> and just before </body>. It's not actually mandatory, but this way, it should work out for anyone stumbling upon this thread. Hope this makes sense.
this is my site if it helps anyone?
If you can supply your theme code, either as attachments or as a pastie (http://www.pastie.org ), I can have a quick look.
- have removed jquery call and now have bar appearing at top but no buttons?
Content of header.php and footer.php in folder 'elements', if you have followed the convention. Otherwise just the code holding your head and footer. If it's all in one file right now, you can supply the whole file (but I suggest you read the how-to I linked to in my first reply).
EDIT: The reason you are not seeing any buttons is the use of foundation framework, which uses the same class names as bootstrap in many cases. Just follow Job's how-to and you will get this done in a heartbeat.
Not sure what am doing wrong?
I haven't seperated out my header and footer yet - all of the code is in one page! Wanted to get it working and then seperate out?
You have commented out the main foundation.min.js file
and you're calling jquery.j which you don't need to do because C5 already includes jquery.js
and you need to either remove the Orbit initialization stuff at the bottom or include the orbit.js file. Right now you haven't included orbit.js but you're trying to initialize it near the bottom.
Please take your time to read the first how-to I linked to. It's pretty long, but holds all information (required snippets, if you will) you need to get a theme up and running.
"NetworkError: 404 Not Found -http://www.laurenmoss.co.uk/dev/themes/CRP/stylesheets/spinner.gif&...
Not a big deal.
Still no buttons in edit bar?
The easiest way is to modify the Foundation Framework files. Ultimately, the aim is the rename .container and .row to something unique. Open stylesheets/framework.css Do a CTRL-F for ".row", and then replace all occurences with ".c5row" or something equally as unique Do a CTRL-F for ".container". In the current version this should not match anything, however for future version of FF, do this anyway. Replace any occurences with ".c5container" or something equally as unique. Open your theme file. Where you have used either class="row" or class="container", replace it with your new class name. That will get your site functionality working.
Am missing something!
Should have specified that I changed all .row to .c5row but my search couldn't find .container
EDIT: I forgot to tell you how I found out. Simply put I checked the source of your page and followed the link to the stylesheet. Once there I did a search for '.row' and found several instances of it.
UPDATE: Never mind. I'm being an idiot.
OK - have uploaded my files again and checked - still no edit/top bar?
also i used to see a editable field for this area:
<? $a = new Area('Introduction'); $a->display($c); ?>
which is now gone? I couldn't edit it but could see it?
Can you attach your php file that you are using as the page template for this page? Perhaps it's default.php?? You will need to change the extention from php to txt in order to attach it to this forum.
<?php Loader::element('footer_required'); ?>
Don't know what to do!
Help me understand your setup. The default.php file you attached has the line:
<link rel="stylesheet" href="<?=$this->getStyleSheet('foundation');?>">
This will pull the foundation.css from the root of your theme folder but the output of your page shows the stylesheets are successfully being pulled from the 'stylesheets' folder like this:
<link rel="stylesheet" href="/dev/themes/CRP/stylesheets/foundation.css">
These two things can't happen at the same time so are you sure the default.php file you attached here is file the page is using?
I've attatched the most recent version and wont change anything else!
all css files are in stylsheets folder. Does that make sense?
1) I changed all your shortcodes "<?=" to "<?php echo" just because.
2) I removed the second call to jquery.js near the bottom.
I now successfully get the toolbar as shown on the attached screenshot on my local machine.
make sure you have turned off all the caching at 'Dashboard->System and Settings->Cache and Speed Settings'. Clear the C5 cache and refresh your browser with CTRL+SHFT+R.
See if that helps.
I know you've got lots of time in this but have you considered purchasing the 'Foundation' theme in the marketplace from GrowthCurve? I think it would be $30 well spent. I know you've already spent well over $30 of your time on this project. It's a thought.