#RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Commenting that out (# in front) will kill all other friendly urls. Get rid of the #.
Move the portfolio line before the ^(.*) one.
Also..
RewriteRule ^portfolio/([^/]+)/$ index.php?p=$1 [L,QSA]
should be something like this:
RewriteRule ^portfolio/([^/]+)/$ portfolio/?galAlbum=$1 [L,QSA]
-
- 77 Posts
The reason i commented # that line because it didn't work.
As for the other, my page/resource alias is "index". why change it to "portfolio/?galAlbum=$1" instead?
not sure i understand.
Okay now this is getting confusing, can you pick one topic where you want to discuss this problem - either here or
http://forums.modx.com/thread/?thread=72623&page=3, not both.
This rule:
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
makes sure that EVERY request is being handed over to the MODX friendly url routing stuff. So that is what powers friendly urls in general. If you have a resource that has "index" as its alias, MODX gets that request as index.php?q=index.suffix and will correctly route that to your resource with the "index" alias. That single line in the htaccess makes that possible.
-
- 77 Posts
hi mark, i think i am getting myself confused. i apologize for the confusion.
in regards to the gallery, i can remove the alias, it is not really needed since i am using friend url, but am not sure if i am doing it correctly.
do i put an alias in the resource?
as for the other topic, i will post in the other one.
-
- 91 Posts
Hi Chaps and Chappets.
I have done these rewrites as above and the rewrite itself is now working, so awesome on that front.
I'm having a bit on a issue though where if i go to www.domain.com/kitchen-gallery/1/ and then go anywhere on my navigation from there instead of getting eg. www.domain.com/contact.html it will go to www.domain.com/kitchen-gallery/1/contact.html
Any ideas? I'm sure it's something simple that im overlooking. I'm using wayfinder for the nav and my rewrite rule is as bobwal's is and same for galAlbumRowTp.
Thanks guys!
Twitter @alexmercenary
Do you have a base href in your header?
Ie:
<base href="[[!++site_url]]"></base>
-
- 91 Posts
I knew i'd missed something!!
You absolute legend Mark!!
Also maybe you know something about this, but i've got a gallery page that shows thumbnails of the various albums and then when you click a thumb it takes you to that album page with the thumbs which you can load the large image into a nice header box i've made. this is is using gallerific and it's all working fine.
However i want to pull in the album title and album description and place them where my [[*pagetitle]] and [[*content]] usually goes.
Will these work outside of their gallery wrappers because for me its just not working. It says on the gallery page to use [[+album_title]] [[+album_description]] but i see in one of the examples Shaun uses [[gallery.title]] and [[gallery.description]]
thanks for any help
Twitter @alexmercenary
-
- 91 Posts
Hey guys,
Just doing another project at the mo but i am not listing galleries now but rather have different galleries (displaying a thumb view of the images in that gallery) on seperate pages.
So at the moment if i went to www.domain.com/painting/ i would have a list of thumbs in a gallery then i would click that thumb and it is taking me to eg www.domain.com/painting/?galItem=9.jpg
How could i convert this to say www.domain.com/painting/filename.jpg as i can't seem to do it without breaking it all.
All help greatly appreciated.
Twitter @alexmercenary