Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
Hi KK
Using gallery.php as a masterpage so a client can upload photos for multiple slideshows.
All the code is in correctly, but I can't get gallery.php to show up.
when i go to site/gallery.php it shows any text I have put on the page to test it, but it wont show up in the backend on the pages I need it to?

I found some code to test it:
Code: Select all
<cms:template title='Gallery' clonable='1' dynamic_folders='1' gallery='1'>

</cms:template>

Test Text

<cms:if k_user_access_level ge '10' >
<p><a target="_blank" href="<cms:admin_link />">EDIT</a></p>
<cms:else />
<h3>You cannot edit!</h3>
</cms:if>


"Test text" shows up
The EDIT link shows up
- that doesn't work when clicked, just shows http://localhost/swatch/<cms:admin_link/>
- sends me to an "Access Forbidden" page
And it says "You cannot Edit"

I am logged in as superuser.

The pages I am trying to upload the Images to are showing up the Gallery stuff in the backend and I can add photos no worries.

I have done an "Empty Cache and Hard Reload in Chrome
Tried in Firefox etc.

I'm assuming something isn't updating in the database properly, but I don't really know where to look.

I should add that gallery.php doesn't show up in the templates table in the database either (not sure if it should).


Any ideas?


Thanks

weebcho
I went into the database and added the gallery.php row manually.
After a refresh I can upload Images, but there was a popup error which I clicked away too quickly (stupid I know).

It did allow me to upload images, but they all shows a 'blanks'.

Seems like the data base isn't getting written to properly.
I have also tried this on a test page on the live server and same problems occur.
So i think it might be a Couch issue rather than one of the databases being corrupted?

webecho
2 posts Page 1 of 1