Hi Bruno,
Thanks for your response.
Quote from: Bruno17 at Oct 29, 2012, 10:46 AMdoesn't this work?
[[!getPage?
&element=`getImageList`
&tvname=`migxtestTV`
&tpl=`thumbTpl`
&limit=`20`
]]
<div class="pageNav">[[!+page.nav]]</div>
You ROCK Bruno!! Hahahahaha.... (laughing at myself) Yes, this works. I knew it would be something simple but not that simple. This is awesome. Thankyou!!
Off Topic:
Ahhhhh... I see some light at the end of the tunnel. Thanks
A snippet called from within a snippet. Cool...
Now I see what they mean when they say "getPage" is a wrapper snippet. To get the solution you provided to work correctly, and not double the amount of content being displayed on the public view, I had to remove the "getImageList" snippet call and replace it with the getPage snippet call you provided. Having both calls on the same page showed some interesting results.
Off Topic:
Bruno, if you don't have time to answer the following I totally understand. It's more or less a mental note to myself as I'm learning, and I just happened to come upon it using MIGX-TV.
Somewhat off topic but something I wanted to share with you Bruno, in the hopes that you can possibly clear up some confusion.
"Snippet Calls"
What determines "placement/location" of snippet calls? EG... sometimes I see examples of snippet calls being placed in the actual resource page "content area", like with your "getImageList" snippet call. Then, sometimes I see snippet calls being made within templates...
...How does a person determine, when or where, the most appropriate place for a snippet call is to be made from? Resource or Template?
Quote from: Bruno17 at Oct 29, 2012, 10:46 AM
btw:
It would also be possible and perhaps the better option, to use childresources for your Products. Hide them from tree and use a MIGXdb - TV to manage them.
Interesting... Let me ask you something (as I ask myself, "am I setting up MODX for this store in the most effecient manner?")
Right now, the front end menu is somewhat confusing on our test site.
I will definitely follow through with your suggestion. Currently for the Store owner to do CRUD on products they have the "migxtestTV" interface to use, which is very nice, but they have to do a lot clicking and traversing back and forth in the resource tree before they actually start doing some CRUD work. If they only had and handful of products this wouldn't be an issue.
Would or can MIGXdb be setup so they can do ALL of their product CRUD operations within one area within the MODX manager? Ideally I was hoping they could have an interface that allowed them to do the following for CRUD operations.
Example:
- First thing they do is select (from a dropdown list) which main category resource they want to work with. And from there choose which child resource within that main category resource they want to work with.
- Once that's chosen that would make a call to populate a window showing all the resources listed for that given child resource. << like I see in the backend "migxtestTV" I built.
- From here they can right click on product and choose to update or delete. Per normal.
- From here they can drag and drop to rearrange product order as the public see's them listed. Per normal.
- And/Or from here click on a Tab that would allow them to add new products like I have MIGX-TV setup now.
Currently on the front end, when you hover over the main horizontal "Products Categories" menu, a drop down menu is shown with all the main toy categories. Clicking on one these brings you to a page with all the child categories for the given parent category. It's these child categories that actually house content. But nothing is shown yet and they still have to click on a child category to see some actual content. This is less than ideal from a user experience viewpoint. I'll get this sorted. Hopefully MIGXdb can help resolve all the little issues and make this as efficient as can be for both management and front end user experience.
Curious as to what the public view see's and how this is layed out on the screen. Grid view, List view? Choice?
Ahhhh. Never mind. The MODX doc's portion of the site was down for a while. Just got access again.
Often we have the problem with lots of Resources in the Resource-Tree to be very confused at some point and we wish, we would have a better way to manage them in a paginated grid view.
Since we don't see many examples in the MODX docs of a visual representation of what's actually outputted to the users screen, would you be interested in allowing me to submit an example mini MIGX-TV tut to you, so others can see what can be achieved with just a little coding and your awesome snippets?
Thanks Bruno. You've been a tremendous help. When I'm lurking through the forums doing research I'm always learning something from your responses to others.
[ed. note: modx-rocks last edited this post 11 years, 6 months ago.]