Permalinks - what is the url?

AlternativePhot...
AlternativePhotography.com's picture

Joined: 2009-10-01
Posts: 46
Posted: Tue, 2009-10-20 14:16

I've set up permalinks.
The album is here:
http://www.alternativephotography.com/gallery/main.php?g2_itemId=397
the permalink is "malin_fabbri"... now what is the url?
I've tried all different combinations of
/v/malin_fabbri
malin_fabbri.php
and so on, but no luck. A clue please someone?
Grateful!

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9281
Posted: Tue, 2009-10-20 16:17

Have you gone to Site Admin > URL Rewrite and added the permalink rule?

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
AlternativePhot...
AlternativePhotography.com's picture

Joined: 2009-10-01
Posts: 46
Posted: Tue, 2009-10-20 17:52

THe "URL rewrite" is installed, but disabled. I don't understand how to configure it.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9281
Posted: Tue, 2009-10-20 18:50

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

Login or register to post comments
AlternativePhot...
AlternativePhotography.com's picture

Joined: 2009-10-01
Posts: 46
Posted: Tue, 2009-10-20 19:11

Ah, but that's where i get stuck. I don't know php, you see... :-(

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9281
Posted: Tue, 2009-10-20 19:18

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

Login or register to post comments
AlternativePhot...
AlternativePhotography.com's picture

Joined: 2009-10-01
Posts: 46
Posted: Tue, 2009-10-20 19:32

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"?

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9281
Posted: Tue, 2009-10-20 19:41
Quote:
Can i remove the /f/ ??? Yes, i can!

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

Login or register to post comments
AlternativePhot...
AlternativePhotography.com's picture

Joined: 2009-10-01
Posts: 46
Posted: Tue, 2009-10-20 19:55

Thank you, helpful person!

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9281
Posted: Tue, 2009-10-20 20:02

Solved?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
AlternativePhot...
AlternativePhotography.com's picture

Joined: 2009-10-01
Posts: 46
Posted: Wed, 2009-10-21 11:46

Yes, thank you very very much! (I added the /f/ again!) :-)

Login or register to post comments
AlternativePhot...
AlternativePhotography.com's picture

Joined: 2009-10-01
Posts: 46
Posted: Wed, 2009-10-21 14:53

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? :-)

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9281
Posted: Wed, 2009-10-21 15:22

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

Login or register to post comments
AlternativePhot...
AlternativePhotography.com's picture

Joined: 2009-10-01
Posts: 46
Posted: Wed, 2009-10-21 19:10

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! :-)

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9281
Posted: Wed, 2009-10-21 19:30

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

Login or register to post comments
AlternativePhot...
AlternativePhotography.com's picture

Joined: 2009-10-01
Posts: 46
Posted: Thu, 2009-10-22 06:55

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?

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9281
Posted: Thu, 2009-10-22 16:40

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

Login or register to post comments
AlternativePhot...
AlternativePhotography.com's picture

Joined: 2009-10-01
Posts: 46
Posted: Thu, 2009-10-22 20:25

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!

Login or register to post comments