Permalinks - what is the url?
|
AlternativePhot...
![]()
Joined: 2009-10-01
Posts: 114 |
Posted: Tue, 2009-10-20 14:16
|
|
I've set up permalinks. |
|
|
AlternativePhot...
![]()
Joined: 2009-10-01
Posts: 114 |
Posted: Tue, 2009-10-20 14:16
|
|
I've set up permalinks. |
|
Posts: 16501
Have you gone to Site Admin > URL Rewrite and added the permalink rule?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 114
THe "URL rewrite" is installed, but disabled. I don't understand how to configure it.
Posts: 16501
Go to Site Admin > Plugins and click Activate for URL Rewrite. You'll then be prompted to configure it. Ask if you have any questions.
Here's some information: http://codex.gallery2.org/Gallery2:URL_Rewrite
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 114
Ah, but that's where i get stuck. I don't know php, you see...
Posts: 16501
You don't need to. Click on Site Admin, click on Plugins. Click Activate for the URL Rewrite plugin. Click Configure ...
Click that link I posted above and read that page. Once you start getting into it and get to a specific point where you get stuck, ask.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 114
Yippeee! It now works:
http://www.alternativephotography.com/gallery/f/malin_fabbri
Can i remove the /f/ ??? Yes, i can!
http://www.alternativephotography.com/gallery/malin_fabbri
also works.
While i have a helpful person on the line, what is a "keyword album"?
Posts: 16501
It is STRONGLY suggested you don't do that, leave /f/ in there or make it /p/ or something like that, but don't take it out. Read this:
FAQ: My Gallery URLs begin with /v/ and /d/, why?
Keyword Album:
http://codex.gallery2.org/Gallery2:Modules:keyalbum
http://codex.gallery2.org/Gallery2:Modules
More docs:
http://codex.gallery2.org/
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 114
Thank you, helpful person!
Posts: 16501
Solved?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 114
Yes, thank you very very much! (I added the /f/ again!)
Posts: 114
Oh, can i take that last bit back? I just encountered a problem.... I can't see the page INSIDE the embedorator wrap... see what i mean:
Inside the wrap:
http://www.alternativephotography.com/gallery/photographers.php
Outside the wrap:
http://www.alternativephotography.com/gallery/f/malin_fabbri
Is there a way of writing the url so i can use the wrap as well?
Posts: 16501
I don't think so.
You may want to look at something like this:
http://www.flashyourweb.com/staticpages/index.php?page=mediaBlock
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 114
Perhaps I'm wrong (I'm a php-dummy) but it seems like it is a similar solution to embedorator. That means i won't have separate permalinks to each album. This is quite crucial for my website, since there are over 300 artists, who want to link from their own websited directly to their own album.
If this is not possible with the embedorator, i guess the only way is to somehow modify the template.
Before I find someone who I can pay to do this, can i just ask if it's possible?
All i really need to do is to include a server side include at the top (the header) and the ssi at the bottom (the footer)... or, the full html code of the include written out. Would that be something that could be done with the Matrix template? Sorry for the REALLY basic questions!
Posts: 16501
Can't use SSI with php. You'll need to turn your ssi pages into php pages and include them or I think you can use just plain html and include them. But I'm not 100% sure how it works with Smarty:
http://www.smarty.net/manual/en/language.function.include.php
Now that I have a better idea of what you're trying to do, here's what I'd suggest or look at doing if it was my site.
Forgo the embedding (I've never had luck with embedding working with friendly URLs...)
Make your Gallery theme look like the rest of your site.
http://codex.gallery2.org/Gallery2:Editing_Templates
http://codex.gallery2.org/Gallery2:How_to_visually_embed_Gallery_in_your_own_website_by_editing_theme_templates
http://codex.gallery2.org/Gallery2:Themes:How_to_Copy_an_Existing_Theme
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 114
Yes, this is what I REALLY want to do... and should have tried from the start. It's just a big uphill because I don't know php... but, I will give it my best shot tonight! Thank you!
First question...
I am planning on copying Matrix, make changes and make it look like my site, but where do i put the files?
On this page:
http://codex.gallery2.org/Gallery2:How_to_visually_embed_Gallery_in_your_own_website_by_editing_theme_templates
It says:
"In the templates directory you create a new directory called "local" and copy theme.tpl into that directory."
On this page:
http://codex.gallery2.org/Gallery2:Themes:How_to_Copy_an_Existing_Theme
It says:
To add a theme, move it to the gallery/themes folder.
in
themes/myowntheme
or
themes/local/myowntheme
Does it make a difference?
Posts: 16501
The 'local' folder is if you are just making changes to an existing theme and not creating a new one.
So for that you'd put changes into say:
themes/matrix/templates/local
But if you're creating a new theme, just put everything like so:
themes/myowntheme/templates
Basically just copying an existing theme and changing any references from that theme (Matrix) to your theme's name. Follow this one if you want your own theme and not just making changes to an existing theme:
http://codex.gallery2.org/Gallery2:Themes:How_to_Copy_an_Existing_Theme
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 114
I managed to edit the template! Thank you for your patience... just a few minor tweaks to work out, but I think it ok! Thank you so much for all your work answering questions - and making the Gallery2 work like it does! Thank you, thank you thank you!
Please let me know if there is anything i can do in return, I know design!