Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
pluggable_ui...no callbacks for article list tab? [solved]
its 4am and i’m bored so i decided to try and update some of my plugins for 4.2.0. i basically want to insert something right after the search form on the article list page. lam_browse_by works fine in 4.0.8 but ends up showing nothing in 4.2.0.
my old way using jquery:
$js = '<script language="javascript" type="text/javascript">';
$js .= '$(document).ready(function() {
$(".search-form").after('blah blah blah magical stuff here');';
$js .= '});';
$js .= '</script>';
echo $js;
which worked fine in 4.0.8 doesn’t seem to work anymore so i figured i’d try pluggable_ui.
i’m looking at this:
http://textpattern.net/wiki/index.php?title=Core_callback_list#pluggable_ui.28.29_callbacks
and it seems like the article list tab is the only one not on there. any reason for this?
Last edited by iblastoff (2009-09-30 08:17:56)
Offline
Re: pluggable_ui...no callbacks for article list tab? [solved]
any reason this rudimentary jquery trick doesn’t work anymore or why theres no pluggable_ui callbacks for the article list tab then?
Offline
Re: pluggable_ui...no callbacks for article list tab? [solved]
Indeed, there isn’t a callback in txp_list.php. Not sure why.
Anyhow, your code isn’t working because of your unescaped quotes in .after()
. You’re better off using a heredoc:
$js = <<<EOF
<script language="javascript" type="text/javascript">
$(document).ready(function() {
$(".search-form").after('blah blah blah magical stuff here');
});
</script>
EOF;
Last edited by jm (2009-09-30 06:23:52)
Offline
Re: pluggable_ui...no callbacks for article list tab? [solved]
iblastoff wrote:
any reason […] why theres no pluggable_ui callbacks for the article list tab then?
Not in the strict sense. But I’d be hard pressed to find and implement all possible markup points where one might need a hook.
The candidates range from the search form, the table heading up to the very last table cell content. If this omission turns into an issue, we would need some consent on what callback are useful and sensible.
Offline
Re: pluggable_ui...no callbacks for article list tab? [solved]
jm wrote:
Indeed, there isn’t a callback in txp_list.php. Not sure why.
Anyhow, your code isn’t working because of your unescaped quotes in
.after()
. You’re better off using a heredoc:
$js = <<<EOF
<script language="javascript" type="text/javascript">
$(document).ready(function() {
$(".search-form").after('blah blah blah magical stuff here');
});
</script>
EOF;
actually i do escape quotes but i just posted that code as a simplified example of what i usually do. same plugin code works fine in 4.0.8 but nothing in 4.2.0…strange. i guess i’ll continue prodding around.
Last edited by iblastoff (2009-09-30 07:37:09)
Offline
Re: pluggable_ui...no callbacks for article list tab? [solved]
wet wrote:
iblastoff wrote:
any reason […] why theres no pluggable_ui callbacks for the article list tab then?
Not in the strict sense. But I’d be hard pressed to find and implement all possible markup points where one might need a hook.
The candidates range from the search form, the table heading up to the very last table cell content. If this omission turns into an issue, we would need some consent on what callback are useful and sensible.
understood! was just wondering if i could use this new fancy pluggable_ui in this instance. i guess not.
EDIT: giving up on having to edit textile blockquotes every time.
Last edited by iblastoff (2009-09-30 07:55:30)
Offline
Re: pluggable_ui...no callbacks for article list tab? [solved]
nevermind..random jquery messing up issue resolved
Offline
Re: pluggable_ui...no callbacks for article list tab? [solved]
hi Steve,
you may be interested in this post by Bloke.
Offline
#9 2009-09-30 17:53:28
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: pluggable_ui...no callbacks for article list tab? [solved]
iblastoff wrote:
EDIT: giving up on having to edit textile blockquotes every time.
There is FAQ for that :)
Offline