Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am facing a problem while creating a dynamic website. I am building it for some pharma company, which have many products. The problem is, every product have different sections of description, and have to be formatted differently. I wanted to store all the product descriptions in the database, but at the same time preserve the formatting of each description. I also plan to provide an admin interface, where they could edit the product information themselves.
I could use Joomla or any other CMS for that purpose, but i wanted to know if i want to build such a system of my own, where i could format the text in an editor and them save that thing into database and when i retrieve it, i get the same formatting. How could i do this?
Also i wanted to do this in PHP.
Thanks
-- Mohit
Just use a WYSIWYG editor like ckEditor or TinyMce. That will handle the text formatting.. then you jsut store in your database.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I need some help with wordpress, I'm not too experienced with it, and I need to add multiple pdf to the post/page edit screen back-end and display then the added files on the front-end to let the user download them. I've found this article but I'm not sure if this is the way to follow, I will not know the labels and I'm not sure if inside a custom metabox is possible to create dynamic fields (add more fields like label and file if needed). I don't want to use a bloated plugin, how I can proceed?
The easiest way to do this is upload the PDF using the media uploader and then linking them in the frontend while creating a post.
A simple sample at - https://www.wpmadesimple.org/supplementary-guides/adding-pdf-documents/
Let me know if you need more help. This is without a plugin, though there might be more solutions like CPT/Plugins but that is based on your needs.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I want to know if there's a way to chose a random link from a news website, get the page and remove all but text to be stored in a database with php cli. I have no limitations on what can be installed as far as php extensions. If there is no easy way to do this, is there a news service that supplies plain text news?
thanks.
Nope - not from a 'website'... html will vary from site to site and too complex to filter from one source - add multiple sources and the mission is impossible.
That's the bad news. The good news is that there is a way:
Most "news" site provide their content, or a portion of the content, in RSS feeds. Do some research on RSS2 and ATOM protocols and your answer is in there...
Start here: http://www.whatisrss.com
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am fairly new to Woocommerce, but I have an idea for a website, which would include some customization of this plugin. My idea is that instead of products, there could be some other type of data stored in the database like pictures for example. Instead of buying these products people could just put a "like" on them, but towards the engine it would register as a buy. This way I could take advantage of built-in functions like sorting for the most popular items. Is it a good idea or should I consider some other way? Thank you!
For images I would be more inclined to look at something like a Pinterest style theme.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am trying to create an application that will have some similar looking pages. I am not sure what is the best way to do this.
Each page will have a header, side bar, content and footer.
The tricky part here is the sections will be similar but not the same. For example the header can have a combobox and different pages will have different data. One page will have a textbox.
The data will come from SQL server via PHP.
What would be the best way to handle this?
If you are using PHP then take a look into http://www.h2o-template.org/ - the templates will allow you to create similar structures and keeping them maintanable most importantly.
You can then have base template which encapsulates all of the similarities and extend sub templates from that which make each page unique.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want the admin can change the contents of the html page after successful login.
How can I show the contents of html page in an editable format fetching all the contents from the html page.
So that admin can modify contents and then save it to change the front end.
Thanks for your time.
The easiest thing to do is to set up an CMS upfront.
Anyway, you can try out this link http://www.techsling.com/2011/12/10-ways-to-convert-a-simple-htmlcss-website-into-a-content-management-system/. I personally have some experience with Surreal, but I would not recommend it.
If you really think of content management, you should go with a CMS (one of the big 3: Wordpress, Joomla, Drupal).
Hope that helps