-
Posts
2,778 -
Joined
-
Last visited
-
Days Won
40
Everything posted by Macrura
-
@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)
-
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
-
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
-
What is the path to an uploaded image in an "Image FieldType"?
Macrura replied to n0sleeves's topic in Getting Started
i was just saying to make sure that the page you were testing on actually had some images- 11 replies
-
- image location
- img src
-
(and 1 more)
Tagged with:
-
$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
-
What is the path to an uploaded image in an "Image FieldType"?
Macrura replied to n0sleeves's topic in Getting Started
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...- 11 replies
-
- image location
- img src
-
(and 1 more)
Tagged with:
-
great...so it sounds sorted...!
-
What are you using for the select list? Maybe that is messing things up; is this a page select, or hani's module?
-
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.
-
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;
-
right, can you post a bit of those results, so we can see what's in there?
-
@3fingers - also want to mention that the skyscrapers profile has some interesting examples of how to build the selector from various input.
-
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?
-
@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
-
How to setup Relations (?) for a MP3 DB with PW?
Macrura replied to horst's topic in Getting Started
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/ -
@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
-
How to setup Relations (?) for a MP3 DB with PW?
Macrura replied to horst's topic in Getting Started
@Horst - will you be implementing any functionality to read ID3 tags on those mp3 files? -
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
-
$item->widget_group_name->title (or whatever you need to output.) echoing a page field will always return the ID
-
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 ?
-
any javascript errors or warnings in the console, when you try to get it to load the last page? Must be a js issue
- 12 replies
-
- ajax
- infinite scroll
-
(and 2 more)
Tagged with:
-
@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.
- 24 replies
-
@Alxndre - if you load /page4 into the browser, do you see the content that would load into the IS?
- 12 replies
-
- ajax
- infinite scroll
-
(and 2 more)
Tagged with:
-
easy solution - put all the pages where you want; use a custom menu no related to the page tree as explained here: http://processwire.com/talk/topic/2787-custom-menu-not-related-to-page-tree/ then make a way to find content based on tags, using the template/api and selectors. you could make your category pages be search result pages, like with this at the end /?tags= and the actual pages themselves be like this at the end /?tag= use a redirect template for the pages, so no one ever sees the 'real' url
- 24 replies
-
@jmart - if there are not a lot of pages, don't nest the pages in the admin, but then make a custom menu. That's how it do it on 3 sites now. (in other words make all of the pages child of the root.) As far as making the custom menu, i do it the way discussed in this thread, and works perfectly. You have to adjust the code to your specific menu needs.. http://processwire.com/talk/topic/2787-custom-menu-not-related-to-page-tree/ i also wanted to mention that once you have a lot of pages in the admin, you could use Soma's datatable to look for pages, instead of the tree; then you could filter/sort by some criteria (title, template); so in this sense you would using PW as more of a bucket system... which for some projects is good, and PW handles it fine...