bounz Reply #1, 1 year, 9 months ago
Hi everyone!
I have problem writing plugin for crossposting documents to livejournal.
For the post in livejournal I need URL of the page from my site. When I create document and save it for the first time, plugin fires, but $modx->makeUrl($id, '', '', 'full') generates URLs like 'http://inaltravel.ru/548.html', but I have my document inside tree and friendly URLs on. When I save my document again the same code generates right url like 'http://inaltravel.ru/countries/specials/548.html'.
How can I fix it?
I have problem writing plugin for crossposting documents to livejournal.
For the post in livejournal I need URL of the page from my site. When I create document and save it for the first time, plugin fires, but $modx->makeUrl($id, '', '', 'full') generates URLs like 'http://inaltravel.ru/548.html', but I have my document inside tree and friendly URLs on. When I save my document again the same code generates right url like 'http://inaltravel.ru/countries/specials/548.html'.
How can I fix it?