I,m stuck with the same problem for months now.
Still don't understand why tv's are set so central in modx development while good practice, so it seems, is to avoid them all together. Also i,m a bit disappointed by the fact that the slowness of tv's isn't mentioned anywhere......
Something that you would like to know starting making a cms with the framework.
My situation:
Goal is:
tree = menu
resource place in tree = resource place in website
resource can be a post, a product, a newsitem, a page etc. and holds all necessary value's for it to work.
left, righ,t full, portal layout are possible for all resources.
As less fields as possible in the manager pages for clients.
Only pages that need to be updated by client are in the clients tree.
All snippets work in all pages on all levels.
two languages
Above is done, but on pages with many tv's it's slow, to slow.
I have 3 basic templates per context, one home, one for pages one for index-pages.
They have 3 tv's regarding layout and function.
By selecting chunks in al selectlist you determine the chuncks a chuncklistparser will parse.
full/left/right/portal
post/page/product/news-item/
full/left/right/portal
news/blog/catalogue/gallery/and several other like sledded and tabbed content.
In the same way there is a possibility to select widgets on either the left or right side.
Widgets are basic function blocks like: latest post, submenu, upload files, rss reader, archive, Tagcloud, Taglister, image rotator, search, cart-status, etc.
Depending on the function and user (post,page,product,newsitem) (webmaster,client,admin)
there are tv's in a cmp. For axample images, links, tags, metatags, prices, product numbers, stock value's, description's, etc
99% of the snippets are executed cached, All caching options are on.
Only tv's that are needed are proccesed where possible (for example: getresource calls use the tvprocesslist)
output of most tv's is set to "string" instead of text or number.
Phpthumbof is used for all images and thumbs
All packages are latest versions as is Modx: 2.2.0 pl2
the errorlog is empty.
Stuck with some 300 + chunks, about 100+ snippets and lot's of tv;s i want to ask before refurnishing the hole lot:
"Is a MIGX tv with some 40 value's faster as 40 tv's? "
Could you think of another way to speed things up?
Some other thoughts:
Ad fields to the content field table, (but can this be done without causing other probs).
make a tv that is an array of value's instead of a single value?
a plugin that delays the processing of tv value's untill for instance a ajax script asks for them to be processed
Greetings
Hurby
[ed. note: hurby last edited this post 14 years, 8 months ago.]