Jump to content

Macrura

PW-Moderators
  • Posts

    2,780
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Macrura

  1. Soma's DataTable makes it easy to find/sort/filter large amounts of pages, but AFAIK you can't filter/sort on custom fields. Maybe a custom admin theme or a new admin page for that purpose would be best, with an ajax search for example on the top, and sortable columns..
  2. just tell them not to view page in the admin, or make those pages redirect to the anchor on the homepage, using some php in the template file (?)
  3. @renobird - funny, a few hrs ago i was trying to get my head around how to import CSV data into repeaters... not sure if it is relevant to your question, but it is something i might need to do soon (importing users where phone and email are repeatable)
  4. As far as i can tell it all works as intended - i think the paging buttons are intentional, and the sort order is not intended to toggle, but to sort ascending, so i wouldn't say bugs but maybe needs to be improved a bit this may be relevant: http://community.invisionpower.com/topic/356062-ipboard-seo-paging-issue/?hl=paging
  5. this should be not a problem.. don't reinvent the wheel? just make your tabs (css or jquery based) and then embed your form in the last tab maybe you need to buy some tabs on codecanyon? http://codecanyon.net/item/tabs-accordion/2906434?sso?WT.ac=search_item&WT.seg_1=search_item&WT.z_author=Lamovo http://codecanyon.net/item/zozo-tabs/3327836?sso?WT.ac=search_item&WT.seg_1=search_item&WT.z_author=ZozoUI
  6. i was just saying to make sure that the page you were testing on actually had some images
  7. $product->product_price->label this should work - the cheatsheet says you can do $field->label ( $product->product_price is your field ); i think i have done number_format on something similar, so I would have to say yes to this: "could I use number_format directly on ($product->product_price)"... maybe report back if your results are not as expected
  8. does your error log show anything? Are you sure there is an image uploaded, and the api is considering it a single file (max images 1)? have you tried it on other pages, other templates... might help to narrow down the issue...
  9. great...so it sounds sorted...!
  10. What are you using for the select list? Maybe that is messing things up; is this a page select, or hani's module?
  11. what about this, just taking a guess here, that you need to count the actual repeaters before assigning them to a variable? <?php echo 'There are [ '. count($page->widget_group) . ' ] widgets assigned<hr>'; ?> also can you try foreach ($page->widget_group as $item) { because you may be encountering some strangeness by trying to assign what is already a page array into a new variable.
  12. As Soma points out, the issue must be that you have specified to allow multiple pages to be selected, which you shouldn't because you're using the repeaters to handle the adding of widgets, and you have an additional field in the repeater item related to positioning the widget. So it makes sense to limit that page select to 1 page;
  13. right, can you post a bit of those results, so we can see what's in there?
  14. @3fingers - also want to mention that the skyscrapers profile has some interesting examples of how to build the selector from various input.
  15. to me it doesn't seem optional since it's not really the 'widget group name' but is the actual page that is holding the widget, and it's also shorter; unless i have a misunderstanding of your fields and templates names; if you can post the names of all relevant fields and templates including the repeater field, and what fields are inside the repeater i might be able to do better... but from what i see from your post this should work.. can you do a print_r ($group); to see whats in that array? maybe also the same for the $item?
  16. @kongondo thank you - i'll check those out @jsantari - something like this should work ; <?php $group = $page->widget_group; // widget group is a repeater foreach ($group as $item) { // each repeater item has 2 fields, one is a page select called widget_group_name ?> <ul> <li><?php echo $item->widget_group_name->title; ?></li> <li><?php echo $item->widget_group_name->block; ?></li> </ul> <?php } // end foreach ?> Also want to mention that the field names are not really optimal; for example the page select should probably be just widget
  17. ok, I will try to help out, since i'm interested in having some reusable code for this.. in the meantime, here are some things that might help: http://www.script-tutorials.com/id3-tags-reader-with-php/ http://getid3.sourceforge.net/
  18. @teppo - thanks; i'm still not super hip to this whole render thing and i've searched the docs, cheatsheet and forum.. any chance you could provide a quick explanation of how render() works? cheers
  19. @Horst - will you be implementing any functionality to read ID3 tags on those mp3 files?
  20. yes it sounds like you're getting booted from the admin, or there is some error going on, perhaps with duplicates in the database... one thing i would try is repairing the database, you can login to your phpMyAdmin and run the database repair
  21. $item->widget_group_name->title (or whatever you need to output.) echoing a page field will always return the ID
  22. so in other words you have a text field called social_upon and when you enter data into that field and save, you get a 404 error. You should post the URL that PW is redirecting to on save; try disabling some modules also, to account for possible conflicts; also post screenshot ?
  23. any javascript errors or warnings in the console, when you try to get it to load the last page? Must be a js issue
  24. @joe_g - you could use url segments to get the URLs to look real and have the tags. as far as the structure, looks like a page select to me, with possibly some custom validation, such as max 2 for the parents. field 1: page select, selects from pages with tag 'parent' (custom selector) field 2: page select, selects from pages with tag 'child' allow creation of new pages on that page select... not sure if this is what you're after though.. right, ordering is tricky... but you could make a custom field for that too.. might need a custom module to handle global ordering by tag.
  25. @Alxndre - if you load /page4 into the browser, do you see the content that would load into the IS?
×
×
  • Create New...