Jump to content

Archived

This topic is now archived and is closed to further replies.

clinton4

Why won't opts register in section_opts()?

Recommended Posts

Rob

Who made that section? Obviously, it's not something we offered, created or published via our store.  Thus it's hardly likely to work with our systems.  It won't be calling the proper files, systems, CSS, etc. 

 

We can't support such products.  Also, I don't advise that you use things you find on the Web, if that's where you found that. If you created it, unfortunately, we don't offer or provide customization support. You'd need a professional developer.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
clinton4
Rob

I made it to illustrate my problem. It's a no functional dummy section whic does nothing. But if you try to add it to a DMS install, you will see my issue. I have added som values to opts, which results in "undefined" items in the select window.

I have followed instructiins from your docs.

Do you understand my issue? I need you to tell my why this is not working when i follow your docs!

Share this post


Link to post
Share on other sites
Rob

Honestly, I don't know.  I'll refer this to Danny, who wrote the docs and ask him to test it.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
beardedavenger

You're going about this the hard way ya know, but if you really want to build your own select, may be better off with something like:

for($i=1;$i<=10;$i++):
shit
endfor;

And

'opt_'.$i and 'name'-$i

untested


Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
clinton4
beardedavenger

I know, but that part of code is not relevant to my issue.

My problem is that the array ($buildArray) in opts is not registering as it should. Even though i use the corret syntax as specified in http://docs.pagelines.com/developer/section-api

As you see on the image in my first post, all items say "undefined" where they should say "some stuff".

Share this post


Link to post
Share on other sites
beardedavenger

Turn on debug in Advanced. Then plprint($arg) your array. plprint is like var_dump but for pagelines. That should help you pinpoint why the array isn't properly formatted.


Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
clinton4

Ahh! There you go. It was the name array :)

 

Thanks for pointing me in the right direction

 

Thanks :)

Share this post


Link to post
Share on other sites

×