duck101 |
|
---|---|
Hey I was wondering if it is possible to "direct link" from the "list" to the page download/
in the core list.inc.php this is the url for the page "LIST_ROW_URL" => $pag['page_pageurl'], so I need to combine that with 'PAGE_FILE_URL' => sed_url('page', "id=".$pag['page_id']."&a=dl") in the page.inc.php, but put the code in the list.inc.php. then because it links automatically to the download field url I need to be able to still edit it if I am the admin, so I put this in the list.inc.php if ($usr['isadmin']) { if($pag['page_state'] == 1) { $validation = "<a href=\"".sed_url('admin', "m=page&s=queue&a=validate&id=".$pag['page_id']."&".sed_xg())."\">".$L['Validate']."</a>"; } else { $validation = "<a href=\"".sed_url('admin', "m=page&s=queue&a=unvalidate&id=".$pag['page_id']."&".sed_xg())."\">".$L['Putinvalidationqueue']."</a>"; } $t-> assign(array( "PAGE_ADMIN_COUNT" => $pag['page_count'], "PAGE_ADMIN_UNVALIDATE" => $validation, "PAGE_ADMIN_EDIT" => "<a href=\"".sed_url('page', "m=edit&id=".$pag['page_id']."&r=list")."\">".$L['Edit']."</a>" )); }so it doesn't work, I new that when I added it but I think I am missing the page identification code in from of the PAGE_ADMIN EDIT url is this possible or should I not be messing around w/ the core. I realize it might be better to make a plugin but I am not very good at editing plugins |