drupal-6


display only the content of a page in lightbox2 in drupal


I am using drupal.I have to display the content of a page in lightbox2.(only the content not header,footer,menubar,sidebar etc).The url of that content node is http://mysite.com/node/1.
I have included the lightbox2 module and used the below code
<li>click here to see node content</li>
But the lightbox displays the whole page not only the content.i need only the text content.
One more option in that you can pass a parameter in get method for lightbox2 content.
Based on the parameter add condition in page.tpl.php
Not the best of the solution, but achievable.
Create a new page.tpl for node/1 and print only $content in this.
this way you will make sure you only get content and nothing else
I Agree with Vaibhav Jain, you can create a theme for the page without the header, left and right, footer. only the content and call that page inside the lightbox

Related Links

drupal ubercart product kit and views
how can i see object data returned by node_load() method in Drupal?
drupal_get_form : Manual call to render a form isn't working
Query in Override of node.tpl
Design a site in drupal: General Overview
use drupal hook_nodeapi
Creating a CCK record in a MySQL database
Aggregate various feeds and display them as blog entries?
hook_menu giving 404
Drupal 6 backport of Drupal 7 admin-bar and overlay?
Adding extra multiple fields in Drupal(6.19) comment form
How to modify the HTML tag in Drupal 6?
working with forms and ajax in drupal 6
How to do form validation in drupal?
Drupal: Problem with installing Drupal6
How to conditionally hide a field in a drupal view?

Categories

HOME
magnific-popup
mfc
iterator
stock
cplex
google-oauth
sharepoint-designer
dxl
baqend
enterprise-library-5
basic
google-translate
midi
google-cloud-spanner
clojurescript
invantive-sql
undefined
firefox-webextensions
dbext
reverse-proxy
mustache.php
sqlcipher
sparse-matrix
centos6.5
facebook-access-token
primitive
procdump
calibre
android-kernel
service-discovery
ansible-playbook
sas-visual-analytics
galen
modelmapper
.net-4.6.2
errordocument
hendrix
mu
statsd
composite-key
google-perftools
nsarray
windows-mobile-6.5
r-forge
root-framework
spring-android
removechild
mikroc
django-debug-toolbar
merge-conflict-resolution
php-parse-error
ios4
natvis
hsv
comobject
retina
iis-arr
cakephp-3.1
myo
iiviewdeckcontroller
clipperlib
system.reflection
applescript-objc
xojo
responsive-slides
uitouch
jubula
undefined-reference
page-layout
back-stack
gridcontrol
django-nonrel
hungarian-algorithm
seed
random-seed
sqlperformance
kyotocabinet
tridion-worldserver
ohm
spring-portlet-mvc
work-stealing
gwt-ext
xtype
winbugs14
w3wp.exe
gallio
gamequery
filtered-index
avatar
temporal-database
sustainable-pace
zend-decorators

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App