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

switch chef-client user during bootstrap
Fix Drupal 6 menu urls on test server
Drupal 6 - is node_submit() needed when saving node?
Apache Solr : Filter results by minimum relevancy in drupal 6.x
How can I add the tracking number to the message the users receive?
How can I get the term id after using taxonomy_save_term?
Why can't my user access a certain page?
jqModal popup does not opens
Access alias of a node programatically using Drupal 6
When variable_get() can be used while variable_set() has not been used?
How can I redirect users to login page and then add item to wishlist?
How to change Ubercart status messages in Drupal?
How do you add Fedex SmartPost as a shipping option?
Group Checkboxes in webform in drupal
Drupal 6 - How can I disable comments on all nodes / content_types?
Webservice creation in Drupal 6.22

Categories

HOME
clips
wso2
omnet++
push-notification
tinymce
nullpointerexception
octobercms
jsrender
jgroups
c#-2.0
jxls
mvvmcross
serverspec
flyway4
podio
append
basic
slick-slider
metatrader4
vault
u-sql
google-cloud-spanner
zend-framework3
php-7.1
messages
iron-router
carthage
percona
designer
caml
graphlab
samoa
lldb
xlsxwriter
mmap
lcd
numerical-methods
apache-commons-io
facebook-access-token
bootstrap-duallistbox
kannel
user-interaction
pingfederate
spring-mybatis
ping
elasticsearch-net
opentype
compatibility
subdomains
kendo-datasource
react-chartjs
framemaker
language-concepts
mapbox-gl
vxworks
espeak
android-browser
sfdc
gulp-sourcemaps
logfiles
errordocument
theming
blogengine.net
togetherjs
darcs
spring-cache
lync-client-sdk
color-profile
messenger
android-fonts
radtreelist
azure-virtual-network
adxstudio-portals
merge-conflict-resolution
player
clang-static-analyzer
disque
apachebench
asp.net5
jms2
cannon.js
jmeter-maven-plugin
cisco-ios
unity5.2.3
notify
device-orientation
apache-commons-net
lustre
offloading
coldbox
html-helper
starcluster
doskey
mysql-error-1062
algebraic-data-types
mcts
terminal-services
dataservice
eclipse-memory-analyzer
sqlperformance
limejs
free-variable
cisco-jtapi
funscript
objective-c-2.0
uiviewanimation-curve
code-cleanup
gnu-prolog
deobfuscation
mongomapper
getresponsestream
preference
forums
virtual-functions
yagni
aquaticprime

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App