I am developing a Content Manager System using PHP and wonder if there is a css generator i can use as a plugin. The generated code is stored in MySQL database.
I have looked at many of these here, but i cant seem to see any i can provide to my users as a plugin.
I want one that creates layouts and can change background. If i cant get one, then how do i create one.
i hope you cant get any plugin for that, since the page you are designing must be known to you [positioning, font size, etc]
First, Create a complete site with some css which hold layout, like a1.css
then , you can do the same with same attributes with a2.css, a3.css...etc.. [this may be terrible]
or
you can change dynamically by Jquery to generate dynamically , like
.css( "padding-left", "+=15" )
or use different frameworks and make it accessible, LINK
hope it gives you an idea!
Related
I am new to DRUPAL switching from codeigniter. I have a project on drupal you can check the link here http://idcr.cprindia.org/database. Someone please suggess me how can make search + show output with maps on the given link (with proper ajax).
how to do this integration. I have an html which is using bootstrap. (i think that will create problem to existing website).
Good morning,
As far as I know, displaying a Google Chart is quite easy. You just have to add some Javascript code.
I suggest writing your own module. In this module I would create a block. First of all, you need to perform the database queries needed to gather the info you want to display. Second, you should use drupal_add_js() to invoke a function stored in a different JS file. You need to pass the chart info in the settings array.
Hope it helps.
I'm building a webapp which main purpose is displaying widgets on a display. These widgets have an variable size, so not every widget is even high or wide (But they are using standards like for example a grid system). Now I'm looking for the best way to save which widgets are used, and where they are placed. For example by using something like Gridstack the user can drag and place the widgets in an admin panel, but how should I save this? And how can I recall this and put in a empty Bootstrap page for example. Working with the Bootstrap Grid system would be great aswell.
I did some research on Google and here but didn't find any plugins or ways to do this.
I'm using 'Gridster' at the moment which this Gridstack is built off of/inspired by, so it probably won't be able to save for you.
You'll need to do that, either by sending it back via AJAX or storing in local storage. As it looks similar, you should be able to find a 'serialization' function which should wrap it up ready for you to send to your PHP via AJAX.
You may need to scan through the widgets and wrap them up in your own JSON string, such as the row/column/sizex/sizey which is all the grid system really needs to "add" a widget when its first loaded up, so as long as you can feed that back in you should be good to go.
I am wondering if there is anyone out there who knows about Views in Drupal 6, specifically the Ticker aspect that could assist me with the following issue:
I have to create a news ticker that reads in the titles from a specific content type and then prints out those titles in a horizontally scrolling fashion. That is the easy part, I have gotten that to work. The part that I am having issues with is I then need to format this ticker to be a specific font, placed in a specific location on the webpage, but still take in the feed from the content types that it is supposed to. Does anyone know how to use this/ has anyone done anything that works similarly to this in the past?
I would also like to apologize if this is a dumb question, but I do really need assistance.
Thank you
I'd suggest enabling a views block which will allow you to move the view into any region. Defining a custom region will allow you to add the view anywhere within your site. You can also use views_embed_views() which allows you to reference the view directly. Your view will likely require additional JS to load for the ticker function to work and a modified version of using views_embed_view() with slideshow should help.
Ive created a portfolio website for myself, there is a gallery which users can enter, click on a thumbnail and then go to a new html page with the full image and description. Now on this full image page i have a list of other fullimage pages for project 2,3,4,5, etc..
But obviously manually updating project2.html to have a list of all other projects minius project 2 in the sub nav is very tedious and mistakes will occus when i have to do it for all 12 plus pages. So im after the page people are viewing not to appear in that sub nav.
My problem is.. Do i scrap the custom html site and move onto a cms.. The logical step for this sort of dynamic nav. Or do i try and include php if possible. Can anyone suggest the best approach for this, im aware it might in the longrun be easier to run off a cms but i do like the control i get and knowledge i hand crafted my html.
Thanks
Mat
If you wanted to do this with php, you could do so by making a single file containing the navigation, for example nav.html:
Project 1
Project 2
Project 3
all the project pages would then need to be php files, with the appropriate .php extension, and in each of them you would have:
<p>All your normal page html about the project and such that's above your navigation</p>
<?php
include("nav.html");
?>
<p>Anything underneath your navigation</p>
Alternatively, the CMS is a viable choice, or if you particularly fancied learning some php, you could actually code a perfectly servicable system to do this without too much trouble yourself.
If your don't want to use CMS , you can create a php file to handle requests for example , a php file that receive this request :
http://myfolio.com/moreinfo.php?album_id=1&
now in the php file you can get informatin from DB and folders then create a HTML Stream and then output it.
I am using modX cms, and would like to have administrators be able to create some form fields in a larger form (basically a label, and form elements of various kind) which is then made accessible to users as a PDF document which is to be downloaded, filled out, saved and sent to appropriate recipients via email as pdf.
The main difference to other similar questions is that i do not want to actually process the CONTENTS of a form and output a PDF, i want to generate a PDF which contains a FORM based on data [field names/types] found in a CMS.
The main purpose of the application is that forms have to be easily administrable, hence the integration with a CMS. Nothing speaks against using and writing custom code and/or libraries.
I would also consider an option of having a PDF which is able to send its results out by itself, but from what i've understood i'd have to purchase the adobe formbuilder package and that would raise the price too much.
Any hints on what libraries/approaches i could use?
Thanks
TCPDF is recommended
see also the link in the bottom on the wikipedia entry . There are a bunch of existing examples and plugins you could copy&paste from.
There's PDFlib, from which you can generate a new PDF from the ground up, or modify an existing one (including add forms). It is, however, fairly pricey, so if you can't afford Adobe's formbuilder, this is probably too expensive as well.