Category and Maginot '(coranto v.1.32.0)

All new Coranto Addons, updates and patches to addons, will be released here...also, get support for addons within!

Category and Maginot '(coranto v.1.32.0)

Postby niorama » Fri Jan 15, 2010 10:15 am

Hello,

I hope I'm posting this in the right place. I need some help to customise the category and/or maginot addon but first let me tell me that I'm working with Coranto_v.1.32.0.. I added an extra field to the Category addon and was able to save and get the entered value when I need it

Now, the added field should be an url or path and should be used when a newsitem is build with Maginot. The problem is the value is stripped form slashes. A value like /home/username/public_html/news becomes homeusernamepublic_htmlnews.

How can I prevent this from happening.

Best Regards
Niorama
niorama
 
Posts: 5
Joined: Thu Sep 11, 2008 2:40 pm

Re: Category and Maginot '(coranto v.1.32.0)

Postby Musicvid » Fri Jan 15, 2010 12:58 pm

The version you are using is a test version. It contains known bugs and should not be used "live."
We are still testing new alpha versions of the program.

Use the stable 1.25 or the beta 1.35 instead.
Musicvid
 
Posts: 302
Joined: Wed Jan 17, 2007 1:05 am
Location: Western America

Re: Category and Maginot '(coranto v.1.32.0)

Postby niorama » Fri Jan 15, 2010 2:10 pm

Hello Musicvid,

Thank you for replying. Where do I find the beta 1.35 version or did you mean the 1.31.5 version

I tried the 1.31.5 version and it seems I have the same problem.
I think it has something to do with stripping the slashes when Maginot creates the
files (and directories) specified in the File Path field.

In the extra field I created in the category addon (CategoryUrl) I have entered something like /home/username/public_html/news and in the file path field of the magento profile I entered <Field: CategoryUrl>. All the slashes are stripped and I end up with a file in homeusernamepublic_htmlnews .

Hope you'll be able te assist me.

Thanks and best regards
Niorama
niorama
 
Posts: 5
Joined: Thu Sep 11, 2008 2:40 pm

Re: Category and Maginot '(coranto v.1.32.0)

Postby Musicvid » Fri Jan 15, 2010 3:22 pm

It is 1.31.5
Sorry for my haste. I know that others are using Maginot with 1.31.5 without problems. Since I am not using that addon, I better step aside and let those with more knowledge assist you with this problem. One thing you "might" try is escaping the slashes like this:

\/home\/username\/public_html\/news
Musicvid
 
Posts: 302
Joined: Wed Jan 17, 2007 1:05 am
Location: Western America

Re: Category and Maginot '(coranto v.1.32.0)

Postby niorama » Sun Jan 17, 2010 4:45 pm

Musicvid,

Thanks for the reply.

I tried to escape te slashes but that didn't work. The result is still the same.

I think it has something to do with the code below in cra_maginot but I'm not really in to perl to change it. I hope you can assist me with altering the code so the slashes aren't stripped anymore.

cra_maginot lines 191,192,193
Code: Select all
   $dirpath =~ s/<Field\: ([^\s\>\{\[]+)>/\%\^${$1}\%\%/g;
   $dirpath =~ s/<Field\: ([^\s\>\{]+)\{[\'\"]([^\s\>\}\'\"]+)[\'\"]\}>/\%\^${$1}{$2}\%\%/g;
   $dirpath =~ s/<Field\: ([^\s\>\[]+)\[(\d+)\]>/\%\^${$1}[$2]\%\%/g;


Thank you and best regards
Niorama
niorama
 
Posts: 5
Joined: Thu Sep 11, 2008 2:40 pm

Re: Category and Maginot '(coranto v.1.32.0)

Postby niorama » Sun Jan 17, 2010 9:18 pm

Nevermind, I think I found the solution. :D :D :D :D
niorama
 
Posts: 5
Joined: Thu Sep 11, 2008 2:40 pm

Re: Category and Maginot '(coranto v.1.32.0)

Postby Jackanape » Tue Jan 19, 2010 8:28 pm

niorama wrote:Nevermind, I think I found the solution. :D :D :D :D

Can you share, for future users?

I'm curious myself!
A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly.
Specialization is for insects.
-Robert A. Heinlein
User avatar
Jackanape
 
Posts: 803
Joined: Tue Jan 09, 2007 12:15 am
Location: Capitol of the Great State of New York

Re: Category and Maginot '(coranto v.1.32.0)

Postby niorama » Wed Jan 20, 2010 11:07 am

Jackanape,

First I will test my 'solution' but when I find the time,
I'll share my solution for all users. I think I'll be able to
do so in a couple of days but for now
I do not have the time. I'm sorry.

Best Regards
Niorama
niorama
 
Posts: 5
Joined: Thu Sep 11, 2008 2:40 pm


Return to Addon Release and Support

Who is online

Users browsing this forum: No registered users and 1 guest