I hereby claim:
- I am phillipadsmith on github.
- I am phillipadsmith (https://keybase.io/phillipadsmith) on keybase.
- I have a public key whose fingerprint is 25F7 F458 C261 B25B 5297 8F0A 518B F15D D63C 5D49
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<%perl>; | |
foreach my $e ( $element->get_elements(qw(paragraph))) { | |
$m->print('<p>', $e->get_data, "</p>\n"); | |
} | |
</%perl> |
<html> | |
<body> | |
% $burner->chain_next; | |
</body> | |
</html> |
// ==UserScript== | |
// @name Bricolage Delete All | |
// @namespace http://wiki.bricolage.cc/greasemonkey | |
// @description Allows you to check all of the delete checkboxes in the Story Profile | |
// @include * | |
// ==/UserScript== | |
(function () { | |
var spans = document.getElementsByTagName("span"); |
update member | |
set active = True | |
where id in ( | |
select distinct sc.member__id | |
from story__contributor sc | |
inner join story_instance si on sc.story_instance__id = si.id | |
where si.story__id = ID OF YOUR STORY | |
); |
UPDATE "grp" | |
SET "active" = 'FALSE' | |
WHERE "name" ~ '2nd test site' |
SELECT f.id,ft.name,ft.key_name,f.place,f.object_order | |
FROM story_field f,field_type ft | |
WHERE f.field_type__id = ft.id and ft.active = 't' | |
and f.parent_id = ( | |
select t.id from story_element t,element_type et,at_type at | |
where t.element_type__id=et.id and t.active='t' and et.active='t' | |
and et.type__id=at.id and t.object_instance_id = ( | |
select max(id) from story_instance where story__id = 50706 | |
) | |
and at.top_level='t' |
<%args> | |
@secondary_categories | |
$skip_story_id => undef | |
$max_return => 5 | |
</%args> | |
<%perl> | |
# setting max_return to "0" (either by passing in value when calling, or adjusting above), means return everything. | |
my $count_returned=0; # default to returning everything found. | |
my $return_limit; #this is passed to the Bric::Biz... call -- requires special handling. | |
if(0==$max_return){ #unlimited |