What is the best way to generate a sitemap? [closed] - html

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 need to build a sitemap for my website.
The url will be "www.example.com/mysitemap.html".
I know that there are some tools that generate automatically an XML file that contains the
reachable URLs and also improve the SEO.
So my questions are:
How can I build this HTML page going from the generated XML? Or am I wrong and this kind of HTML page is built manually? If not, how do we integrate the XML and convert it to the website?
Thank you very much.
Regards.

If your site architecture is contained in a database (like a CMS) you can do something like Darkyo suggested.
However there are easier methods. There are many free services which crawl your site and create a sitemap
http://www.xml-sitemaps.com/ or http://sitemapdoc.com/ are some examples but the Internet is full of them. Just google "sitemap creator".
If you want to create your own script there is program called "php sitemap ng" at http://enarion.net/google/phpsitemapng . This can be a real good starting place.

If you run a content based site (like YouTube for example), just write a small script that reads your database and generates an XML file for each URL.
Put it as a cron job once every day/week. You can also ping Google/Yahoo/MSN etc. when your sitemap gets updated so they can pick your new sitemap and index the new URL's.

It really depends of how is programmatically build your website,
if your website is huge and reflects a db schema, the best thing
is to write a friendly url generator and store it to the db.
Thank to this system you'll be able to manage retrieve your sitemap easilly
Select CONCAT("http://mysite.com/article/",article.friendly_url) from article
But as I said it highly depends of your architecture / programming ....

Automatically is very hard. You can help though, by using correct semantics.
This will make Google pick up your site's structure better.
When your website consist of static pages you can create a sitemap yourself. If though it is generated with a database you can do this programmaticly. This won't be easy though if you have no experience.
If you use a CMS like Wordpress or Drupal or ... you probably can generate it with a plugin. Use Google for that!

Related

Web app for drag and drop, save as PDF and print [closed]

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 1 year ago.
Improve this question
I've been tasked to make a web app that users can drag and drop images to a container, depending on the size of the image, it needs to be able to snap in to place until the container is full.
I'm only a beginner programmer, I'm not too sure how to even begin (I've been "googling" for the last couple of days). I'm only going to host the app on a local server.
Can someone point me in the right direction?
Would Python be the best bet here?
Is a Web App even a good approach to this? I'm only going with a web app, so users can access through localhost.
There's no data stored (yet). Just saving as pdf and printing.
I'm not sure what other features will be added in the future, but would be good to have future proofing.
Thank you in advance!
Dispite of my comment I'll give you some directions...
I'll upset a bunch of people, but I don't think python and web are a good match...
You should study a client-side framework like react, that has NPM modules to easily drag and drop, and to organize children in containers in smart ways.
The PDF part is tricky, theres a thing call ghostscript that can "printscreen" a html rendered page and make pdfs, or some tool that do the same using a headless browser.
Can be done, but won't be trivial...

How to upload a website without an html files [closed]

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 2 years ago.
Improve this question
H!
I have created a website, where all the files are of the type CSS, js, pug, and when I want to publish the site, I need to give an index.html file from which the site will start. The problem is that I do not have such a file.
Does anyone know how to deal with such a problem?
And in addition, I started the site by running it in localhost: 3000 does anyone know how to start it now so that it will work when I upload it.
Thanks in advance to all the helpers.
Your mention of localhost:3000 implies that you have written a website which depends on Node.js for server-side code (at a minimum this will involve the translation of your Pug templates into HTML on demand).
There are two general approaches you can take to solve this problem:
Find hosting which supports your server-side code and deploy your Node.js application to it. (This will not be typical static or shared hosting).
Generate static HTML documents from your application and upload those HTML documents. (The specifics will depend on exactly what your server-side implementation does and will probably be a significant amount of work. Typically if you wanted to take this approach, you would have used a framework designed to output static sites from the outset).
Obviously if you have your server-side code processing user input (such as form submissions) option 2 will not work.

How to set up things for MediaWiki for my website [closed]

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 2 years ago.
Improve this question
I am trying to set up a website with MediaWiki on a Shared Hosting service and am getting frustrating results. First I am going to list what I want out of my website and will show the hosting details to show you what kinds of problems I am running into here:
So the main objective of the website is to run a database of events in human history (relating to World War 2)
I want to use the Visual Editor extension to create a more visual style to edit articles (which requires Parsoid) so that editors won’t have to go through the pain of using the old wiki editor and memorizing the different characters needed for specific things and so that editing the whole thing won’t look like a complete mess.
I want to make it so that only selected accounts/people can create and edit content on the site.
I want to be able to have some sort of forum so that people can ask questions and communicate with each other.
I want my site to have a certain kind of style (which I know is a skin but was wondering what's the best way to create one is. Also, do skins also come with the ability to customize the site to have certain functions? Because I have seen sites like halopedia which seems to be running on MediaWiki but have a lot of different kinds of functions and all that. )
I want to create some sort of email system for my thing (although I could just maybe use another service which would be easier)
These are pretty much the main things that I want but there are some smaller things that I can ask how to do some other time as they are not mandatory right now. Here are the details for the hosting service that I use for the website just to give you guys a better understanding of my situation here.
I am using Bluehost as the hosting service and cPanel as the file management system
The website is currently on a shared hosting plan and the best one that I could get without spending a lot a month.
I used Softaculous to download MediaWiki onto my website.
One of the main things that I have been having trouble with is installing Parsoid to install the VisualEditor extension onto the site. The problem is that to install Parsoid you need Node.js which I can’t install on my hosting service because it is shared hosting. However I tried following the instructions on the page that shows you how to do it using Heroic but have been having trouble with that too.
If you wait a few weeks, MediaWiki 1.35 will be released with a PHP implementation of Parsoid.

building html resume... should I use JSON? PHP includes? sql? xml? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
I am building an html resume (with bootstrap tabs) but want to break the sections into separate parts for easy editing and repurposing.
For example, have the work experience data in one file, have education in another and link them to a tabbed html page, but also have the option to export to a docx or pdf. Have skills appear on the html version but not on the pdf export.
What would be the best architecture design to use? Would JSON be good or should I use PHP includes.
What about xml? or should I just maek it a mysql database and use PHP to pull that data (this seems like overkill for less than 1,000 words).
I would argue any of these will be an overkill for a small project. So I'd go placing it all in one html file.
If you want to automatically generate pdf or docs it's no more a html resume. So I won't answer generating part of the question.
As for html management you can use templating language, e.g. Nunjucks or Pug
It will allow you to include html files one in another; the downside is you'll have to setup a build tool like Gulp for this (which will require some basic Javascript knowledge and time).
Something which you need to consider is the format which you would be handing into potential employers.
If you are hoping to hand in a web page, you would probably want to "render" it and not hand in a piece of functioning code. The reason for this, is if the employer/recruiter is unable to open or correctly read the file, this will decrease your chances of getting the job dramatically. Not to mention many large companies use bots which read CV's for you, See this article which explains that matter all to you.
You would also want to consider what some companies/recruiters may think when they see CV.html in their email inbox. Some will think its a really smart and creative idea, others may think it is an incompatible file with their computer and may never open it. Leaving instructions on how to open the document may take time which the employer doesn't have.
I'm not saying its a ludicrous idea, I'm saying you need to properly plan it out. Personally, I would keep an online copy on my website, but I would also have an additional copy (Word document or PDF) which could be downloaded and accessed by those bots which I mentioned early.
In programming there are many ways to do the same thing, and it is entirely up to you and your abilities to find what is best.

Difference between developing an ASP.NET site and web design using HTML and css [closed]

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 8 years ago.
Improve this question
I was wondering what's the difference between an ASP.NET site and developing a site with Notepad++ ?
I know that ASP.NET can work with servers and C# and things. Also I know that you can create an HTML file in Visual Studio so you can do that instead of Notepad++.
Also I know that with ASP.NET you can have Master Pages but not with an HTML file and Master Pages are much easier than copy and past on a lot of different sites.
Also can you develop a simple site with ASP.NET, no servers, just a site for people to get a contact detail and find out about your company? Because I really like master pages.
Your question is showing a complete lack of knowledge on this stuff. Before going to a job interview, you should go through some tutorials (you can find plenty on YouTube) and/or read some books on web site development. Otherwise I fear your interviewer will think something along the lines of "this guy just read a bunch of computer terms online and strung them together without understanding any of them". I know that may sound harsh, but I want to make sure you go into your interview prepared.
ASP.NET uses server side code to generate output. At the end of the day, it's just serving up HTML, CSS, JavaScript etc to the client. You can create "plain" HTML sites (non ASP.NET sites) with Visual Studio, or you can write the code for ASP.NET sites with Notepad (or event a command line text editor). At some point, though ASP.NET sites will need to be compiled before they can be served to a client via a web server.
No, you can't build a site with ASP.NET and run it without a server. You must have a server. Wikipedia has a nice entry on the Client-Server model.