Hi guys,
here is a pre-release ov version 0.2b. I completely separated the data source and calendar view system, and they all being combined on the snippet calling. With this, it’s enabled us to view calendar witht he input from different data sources. One of the good example to use this feature is to have all birthday of each users on MODx system to be displayed on the calendar, which all it takes is a to create another data source layer that responsible in fetching the user birthday field, and display it on the calendar.
Hope this does make sense to some of you.
I haven’t put it on the main page yet, because I want Mark to help me tested out this release first, and waiting for a new improvement in the layout, before I release the first beta version of this snippet.
Any help in testing it out and improve it will be great.
Hemm...
I think that’s an error from the core code, isn’t it? It doesn’t stated my code in there. Let me further investigate this. FYI, I did check my code against the php safe mode issue, and it ’s suppose to run just fine in that evironment.
-
MODX Staff
- 10,725 Posts
This error would occur if an attempt was made to find a page by an alias and no alias was found in the documentListing (i.e. no document with that alias exists). Are you creating document aliases in your code somewhere?
Thanks for the reply Jason.
I did use a lot of makeUrl(doc_id, ’’, ’some_query_string’);
I never use the middle part, because I couldn’t find the reason of using the middle parameter.
Anyway, I tried to turn of my friendly alias path on my testing server, and everything seems to works just fine. It’s outputing the right link and etc.
Do you think it might be caused by some other thing?
Thanks
I have friendly alias path turned ON on my server.
Wendy, why don’t you generate your page links just via [~id~]? They will be parserd if output by a snippet any you CAN pass paramers through just by appending stuff to the end. IE:
[~id~]?page=home&sure=yes
-
MODX Staff
- 12,272 Posts
It should work just fine. The URL will be written for the page differently based on whether or not you have aliases turnd on, and there will only be one "?".
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
Kewl.
So what’s the point of makeUrl API? I mean I use it a lot on my snippet, and do I still need to use or not? Is there any known issue to makeUrl, like causing an incompatibility with Mark hosting server?