I have web application let us say "client" where contents are controlled by CMS (using MVC3 areas). Both applications are in the same project and the same solution. We just added area for CMS. The CMS or admin area has upload image functionality then the client displays the contents uploaded by admin. We don't have issue if admin and client is hosted on the same IIS directory however our business needs that both admin and client should be deployed on different directory this will become.
CMS: http://cms.com/admin
Client: http://client.com/
All content uploads take place at cms.com and contents will be displayed at client.com
My main issue is that the project was not designed to get images from other web directory. For example currently all images get the path from client.com
<img src="http://client.com/Content/Uploads/img1.jpg"/>
<img src="http://client.com/Content/Uploads/img2.jpg"/>
<img src="http://client.com/Content/Uploads/img3.jpg"/>
Now my question is, is there easiest way a URL helper or anything I can implement without going through modifying all images to reference http://cms.com/Content/Uploads source? Please help.
Related
I am trying to locate the file or folder in cpanel that the front page of my website is housed in so i can add a floating action button script to my website.
I just have no prior experience here.
(I am trying to add this in correct place)
It should have a finished result as here http://www.floatingactionbutton.com
The views or 'pages' of the application should be in the resources/views/ directory. You may find a view that is 'home' or something similar but there is no way of knowing what the views have been named when your application was developed.
The views may not be in straight HTML / PHP but rather use Laravel's Blade syntax.
In addition, existing javascript files in your site may have been compiled using Webpack. I imagine the floating action button will be a javascript script.
Can you get the original developer to add the script for you?
I'm currently trying to upload a html+css page to my hosting service (1&1 internet).
Unfortunately, I have very little experience in that; and would like to ask this question:
How is it possible to update the existing homepage on a site that already has been uploaded to the web?
I'm using WebspaceExplorer. Now, when I enter it, (Hosting section) there are a lot of folders and files with a few options like download, delete and so on.
I can't seem to find out how to make the program understand which one should be the homepage. This is because I see that the page I uploaded is online and accessible, but is not the first page the user sees! How can I change it?
It may be confusing because of the poor description so here is the url of both:
velten-berlin.org (current Homepage)
velten-berlin.org/Upload (desired homepage)
I am developing a web application for my client using Code Igniter and i need to hide and secure some ZIP, JPG and PDF files on server so that they are not accessible by non users. Only people who are logged in and are the owners of Files can access the files. This is very similar to secure file sharing websites.
it is very similar to any paid file sharing site like only people who paid for files can download files. In my case only those who have uploaded and who shared the files with other can download files.
Please tell me how can i do this..
Thanks
Sajid
One method is to keep the files above the web root (so not publicly accessible) and have the link to them point to a function that will check if logged in (or other parameters you want) and if everything is OK, then serve the file(s).
I have created a web application in PHP, Ajax, HTML5. It is ready and working perfectly. Now I want to integrate it with magento. In the application, when user clicks buy now an image is saved in a folder on the server.
I have just started using magento. There are two ways in my mind to implement the functionality,
Navigate the user from magento products page to my application page and when user clicks buy now button on my page it will be the add to cart functionality at the back end. And i will send the image name that is randomly generated and append it into the comments of product that admin can see.
Make my app a magento custom plugin. Add my HTML, css, js, php files within magento and use my app as an internal magento application.
So, i need suggestions, comments, ideas or anything that can help me.
As I have just started with magento and I don't have any experience with e-commerce. So, my question might be showing in experience.
Try to learn Magento API it can be integrated with all your apps.
I have hosted my asp .net mvc3 application in iis server 7. I had deployed my application under a virtual directory and url to my application is like www.abc.com/virtualdirname . Application works fine and Im able to navigate through pages. However , Im unable to view any images used in my application. I have stored my images in a folder public/images .
cshtml code for one of the image is as follows
img id="start" src="../../Public/images/start_button_start.png"
Im getting error message in place of images and path of image is www.abc.com/public/images instead of www.abc.com/virtualdirname/public/images .
In the app settings of my config file, I had defined virtual dir.
add key="virtualdir" value="/virtualdirname " /
Can anyone tell me why this problem happens and how can I get out of this?
Never hardcode urls in an ASP.NET MVC application. Always use url helpers:
<img src="#Url.Content("~/Public/images/start_button_start.png")" alt=""/>
Url helpers will take virtual directory into account.