-
☆ A M B ☆
- 3,112 Posts
I found manager/controller/default/resource[/weblink]/create.php, but it seems only works for internal manager page, because it loads the smarty page.
Does it exist?
Or should I create my own function for this?
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
It’s this one ’core/model/modx/processors/resource/create.php’ run it from within modx using the executeProcessor API call.
Use MODx, or the cat gets it!
-
☆ A M B ☆
- 3,112 Posts
Why did I miss that!
Thanks a bunch, shamblett!
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
Use $modx->runProcessor instead of executeProcessor; executeProcessor is deprecated and will be removed in 2.2.
shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect |
github |
splittingred.com
-
☆ A M B ☆
- 3,112 Posts
Yeah... I just realized that since executeProcessor doesn’t exist on my cheatsheet.

And I thought I was wrong.
* @deprecated 2.0.5 Will be removed in 2.1.
PS:
http://api.modxcms.com/ and
http://rtfm.modx.com/display/revolution20/modX.executeProcessor have not been updated on this matter, yet.
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
-
☆ A M B ☆
- 3,112 Posts
What is ’ta’ ?
<?php
/* modDocument content is posted as ta */
if (isset($scriptProperties['ta'])) $scriptProperties['content'] = $scriptProperties['ta'];
And what is
$scriptProperties[’donthit’] ?
I don’t see any checkbox that related to this.
And
$scriptProperties[’syncsite’] ?
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
-
☆ A M B ☆
- 24,524 Posts
I believe that’s the field name of the content field in the form; at least it is in Evo. No idea why, it just always has been.
-
MODX Staff
- 730 Posts
donthit is leftover from when traffic logging was in the MODx core.
Even though the field has been removed from the form, it is still in the data model, presumably for compatibility with Evo. /core/model/modx/processors/update.php does say it’s deprecated though:
@param boolean $donthit (optional) (deprecated) If true, MODx will not log visits on this resource
I’m guessing that
ta stands for text area.
syncsite is the ’Empty Cache’ checkbox.
-
☆ A M B ☆
- 3,112 Posts
But there is also scriptProperties[’clearCache’] (create.php, line 353).
<?php
if (!empty($scriptProperties['syncsite']) || !empty($scriptProperties['clearCache'])) {
Same checkbox different names?
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.