• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Admin page without admin furniture [solved]
PostPosted: Tue May 03, 2011 4:19 pm 
Offline
Forum Members
Forum Members

Joined: Mon Jan 19, 2009 5:04 pm
Posts: 51
Hi - I'm starting development of my first module. It will have very simple functionality and doesn't have any front-end functionality.

Essentially, it will display a list of orders that have been made (via Foxycart), allowing an admin to view the orders and print out details to be included in a package slip.

I'm making slow but steady progress on how to do this but I'm not sure how to create the page which gets printed out. I can pull the information out of the database and display it on a page but I want to be able to display it in a pop-up window without any of the usual CMSMS furniture (ie menus, header, footer etc).

Usual apologies in advance if I've posted this in the wrong place, it doesn't make sense or the answer is blindingly obvious.

thanks,
Gordon


Last edited by cowtan on Thu May 05, 2011 6:41 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Admin page without admin furniture
PostPosted: Thu May 05, 2011 6:17 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Fri Jun 08, 2007 7:29 pm
Posts: 899
Location: 's-Hertogenbosch, Netherlands
cowtan,

I have found (FPDF) to be of great help in these situations. In your case it could be handy to later send invoice or something.
So the flow would be: request the package slip to be prepared and once prepared display it automatically (in new window/tab) and print is.

Using PDF is one solution, there are bound to be more alternatives.

Duketown


Top
 Profile  
 
 Post subject: Re: Admin page without admin furniture
PostPosted: Thu May 05, 2011 9:43 am 
Offline
Forum Members
Forum Members

Joined: Mon Jan 19, 2009 5:04 pm
Posts: 51
Thanks Duketown. I'm actually happy creating the page in HTML (I have the layout from the previous site which I can use). But thanks for the suggestion anyway.

Gordon


Top
 Profile  
 
 Post subject: Re: Admin page without admin furniture
PostPosted: Thu May 05, 2011 10:10 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Wed Sep 05, 2007 8:03 pm
Posts: 3643
Location: The Netherlands
I found a post from NaN on a completely different subject, but maybe it helps you:

NaN wrote:
I would create a link using the CMSms module API passing urlonly=true that will link to a certain module action:

Code:

$myActionUrl = $this->CreateLink($id, 'myAction', $returnid, 'click me', array('disable_theme'=>true','showtemplate'=>'false', ... ),'', true);



This will create a link that processes your module action. So you don't need to instanciate anything.
The params 'disable_theme'=>true' and 'showtemplate'=>'false' causes the CMS to not render anything else but just your module output. (no template in frontend, no backend theme)


So you could play around with params 'disable_theme'=>true' and 'showtemplate'=>'false'

I found another parameter for CreateLink $targetcontentonly in the module API
http://www.cmsmadesimple.org/apidoc/CMS ... CreateLink
I don't know what that does, but you might want to try that one too.

_________________
Get nice guestbook messages from your site visitors with the brand new Gbook module.
Integrate Piwik Web Analytics in your site admin with the Piwik module.
Extend your global site settings with the Custom Global Settings module.
The Fourth Dutch CMS Made Simple Workshop on April 9 2011 was great fun! Read all about it here
Announcement: The Fifth Dutch CMS Made Simple Workshop coming up?


Top
 Profile  
 
 Post subject: Re: Admin page without admin furniture [solved]
PostPosted: Thu May 05, 2011 2:58 pm 
Offline
Forum Members
Forum Members

Joined: Mon Jan 19, 2009 5:04 pm
Posts: 51
Thanks Jos, that looks like exactly what I was after. Much appreciated.

cheers,
Gordon


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner