maternal
Welcome, Guest. Please login or register.
Did you miss your activation email?

 
Advanced search

18633 Posts in 5522 Topics- by 9326 Members - Latest Member: TD

May 19, 2013, 10:43:52 AM
JOOM::GALLERY::FORUMJoomGallery 1.5 MVCMigrationMigration from Phoca, how to display JG cat id?
Pages: [1]
Print
Author Topic: Migration from Phoca, how to display JG cat id?  (Read 2760 times)
0 Members and 1 Guest are viewing this topic.
tomzi
Newbie
*
Offline Offline

Posts: 2


View Profile
« on: June 06, 2011, 02:21:59 PM »

Hello everyone,

first of all I'd like to say I'm thrilled I found this great component - I've been struggling with other solutions for ages and now I'm really looking forward to make a transition to Joomgallery.

I've seen couple of posts talking about moving from Phoca to Joomgallery, but I haven't found any script to make it straightforward move. I assume such script does not exist, but this is more challenge than a problem, right? :)

My problem is following: I'd like to move 300-ish categories from Phoca to Joomgallery, but I'm concerned about dead links which will remain after the move. I was hoping this could be avoided by setting up redirects in htaccess or ReDJ, but there is a problem with how Joomgallery "shapes" it's URLs.


Namely, this is what I'd like to achieve:

to redirect this:

www.domainname.com/menuitem/category/123-category-name  (phoca format with "123" being category id)

to same category but in Joomgallery. I can create categories in JG which will have same id as Phoca ones, so Phoca's id=213 would lead to Joomgallery's id=213, but I don't know how to create this redirect because Joomgallery shapes it's links like this (SEF on):

www.domainname.com/somemenuitem/categoryname/subcategoryname (no visible id).

Can anyone offer some tips or help? Perhaps there is a way in which JG can be accessed through www.domainname.com/components/joomgallery/category/123 or similar? :)

Thanks in advance!


cheers,
Tom
Logged
Chraneco
Developer-Team
Hero Member
*****
Offline Offline

Posts: 3131


View Profile
« Reply #1 on: June 06, 2011, 02:38:24 PM »

Hi,

in JoomGallery it is possible to enter an individual alias for each categories and images in the backend managers (you can see them in the edit views of the categories and images).

These aliases will be used by Core SEF of Joomla! for creating the SEF URLs.

So you can enter the aliases created by PhocaGallery there.

Regards
Chraneco
Logged
tomzi
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #2 on: June 06, 2011, 04:21:52 PM »

Hi Chraneco,

thanks for swift reply!

This is solid solution for categories which are linked to menu items. But I have many subcategories which are not directly linked to menu items (I'm not sure how best to describe this).

For example, when I open one subcategory in Phoca, it's name is "Ford Focus ST" and alias "ford-focus-st". But, when you access it through Phoca's own navigation or search for it in Google, it's URL is www.domainname.com/foto/cars/123-ford-focus-st with "123" being this category's id and "cars" being parent category to "ford-focus-st".

I'm worried because I can safely use your alias tip to deal with main categories (ones hooked to menu items) but I cannot use it for subcategories as described above.

I guess I could set up manual redirects from XXX-category-name to category-name for all 300+ categories I have but I'd first like to exhaust possible alternatives. And I constantly have a feeling I'm missing something very obvious! :)

Perhaps I might end up setting up redirects from Phoca-format to non-SEF Joomgallery format for all existing categories in order to avoid SE penalties. In ReDJ it would roughly look like this:

From URL: /foto/category/[0-9]{1,5}
To URL: http://{siteurl}/index.php?option=com_joomgallery&view=category&catid={pathltrim /foto/category}

best regards,
Tom
Logged
Chraneco
Developer-Team
Hero Member
*****
Offline Offline

Posts: 3131


View Profile
« Reply #3 on: June 06, 2011, 05:02:49 PM »

Hi,

I'm not sure whether I understood you correctly, but it is possible to enter the complete path of a category (so including the parent categories) into the alias field.

So if you enter the alias 'cars/123-ford-focus-st' and if 'foto' is the name of a menu item of JoomGallery it should work.

Regards
Chraneco
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic

Bad Behavior has blocked 754 access attempts in the last 7 days.

maternal