how to insert an image on the home page which can be edited later? - opencart2.x

I am working with OpenCart 2.0.1.1.
I want to add an image on the homepage which can be later edited.
So Could anyone give me some step by step guide to create such thing ?

You can use below solution for adding image -
Go to Extensions > Modules > HTML Content (If not installed then install it.Click Edit button at the right).
Enter Module Name (put any name to recognize it).
Click Code View button </> in Content area visual editor to switch editor to HTML mode.You can add images here.
Make Status as Enabled. Save it.
Now Go to System> Design > Layouts and edit Home layout and add above created module to it.

Related

Acumatica I cannot change aspx screen with ASPX Editor

I need to insert: OnDataBound="grid_RowDataBound" to a PXGrid.
My issue is, that I cannot make the insert with Acumatica ASPX Editor. As soon as I GENERATE CUSTOMIZATION SCRIPT, the code inserted disappears.
Now, if I edit that aspx screen with VS, I'm able to insert and save my change, but this change is not reflected in the Acumatica screen.
Do I have to compile the changes in VS?
Any help is appreciated.
Thanks in advance.
Alfredo
Some aspx page cannot be edited. I too got this same situation in moving tab item to other place in the grid. but it did not allow me to do. So I used java script code to move the tabs.
I dont know whether this works or not.
Try to edit the aspx page in the file editor by adding the page that you want to customize and publish it.
File Editor is the nothing but "file" which you can see left pane of the project Editor

How can I stop Generate Customization Script from deleting/ignoring my added ASPX code?

It seems that sometimes, not always, when I add code to an ASPX page via Customization Project -> Screens -> -> Actions -> Edit ASPX and click Generate Customization Scripts, it deletes what I added. What I'm adding doesn't contain any errors as I write it in VS and then copy and paste it into the editor. This sometimes work and sometimes does not. When it does not work, I cannot make changes no matter what I do.
Is there a way to prevent Generate Customization Scripts from deleting the code I add?
Is there a way to edit and see changes to ASPX files after publishing via Visual Studio instead of using the browser editor?
Are you testing your changes directly in the aspx page that you are customization to an existing screen?
I assume this is the case and I have found when I go and look at the generate script changes to the page it already includes my changes because I added them to the page and this process simply loads the same contents. Because its already there my guess is this is why the "changes" are ignored.
Here is what I do and maybe it will help you:
Save the standard aspx screen (before changes) somewhere to revert back later.
Make/test your changes to the aspx page
Save the modified aspx screen changes somewhere
Restore the original aspx screen (saved from step 1)
Go to your customization and paste in your changes to the screen > edit aspx
Click Generate Customization Script
Now your changes should be in place and saved.
This doesn't apply if you are writing your own aspx as this is included as a file in your customization project. This is in reference to modifying an existing aspx file from Acumatica or another customization.
The Generate Customization Scripts button does a very strict validation which will sometime remove valid markup. There isn't much you can do about this.
If you are modifying custom screens, you can modify the .aspx file directly from the {WebsitePath}\CstPublished and {WebsitePath}\Pages folders.
Modifications done to files in CstPublished will be reflected instantly after refreshing the web page.
Modifications done to files from the Pages folder will updated the customization project, as you should get a conflict pop-up in the Project Editor screen.
My preferred workflow is to modify CstPublished files, test in the screen and if it works, I copy paste my change to the Pages folder.

Is there a way to use Sublime to show file previews in Windows Explorer for certain files?

I'd like to be able to preview all plain-text files in the Windows File Explorer Preview Pane. To illustrate, here's what sublime files currently look like:
As you can see, Context.sublime-menu is highlighted, but a preview doesn't appear. They're just plain-text files though - you can open them in Notepad. Is there a way to tell windows "Use notepad (or sublime) to view this type of file the preview pane"?
Thanks to #KeithHall's link - while it didn't work for me - got me started on a pretty long path to finally figuring this out. And finding a better solution than I thought existed.
In short, simply install the Delphi Preview Handler. Which pretty much gives you an IDE in the preview pane. It's pretty simple to use and just awesome.
After installation, if you click on a .js file in Windows File Explorer you can immediately see a different preview pane.
Registering Other Extensions
The Preview Handler doesn't compensate for all plain-text files unfortunately, so you're gonna have to manually add the sublime extensions and any other extensions in the Registry Editor.
Here's the bird's-eye view of this process:
Find the key/value that instructs Windows to use Delphi as the preview handler for .js files.
Copy the key/value
Apply that to each extension you want to preview.
Here's more in-depth instructions:
First, you need to find the ID of the Preview Handler, and its Default Value
win + rregedit > expand HKEY_CLASSES_ROOT
Find .js and expand it.
.js should have a subkey named shellex, expand that
You need to recreate this shellex key for each extension you want to add, so copy its contents:
shellex should have a sub-key named with a bunch of numbers, letters, and dashes, this is the ID of the preview pane (I think)
Right-Click that > Rename > Copy > Cancel
Open Sublime > Create a new file > Paste
Go back to the Registry Editor, Click that ID subkey, and a String value called (Default) should appear in the right side of the window.
Double-Click that
Copy > Cancel > Paste in sublime. This is the ID of the Preview Handler (I think).
At this point there should be 2 IDs in the sublime file.
Now You're ready to add these same values to other extensions.
Find the extension(s) you want to change. For me it was all the sublime file-types.
Right-click > New > Key > call it shellex
Go to sublime, copy the first value
Right-click shellex > New > Key > Paste
Go to sublime, copy the second value
Click the new key and make it's default value that 2nd id.
So it should look similar to this:
v .sublime-commands
| v shellex
| |- {823BD1D4-...
And in the right side of the window:
Name Type Data
(Default) REG_SZ {AD9955...
Sources:
This Answer by #rxantos pointed me in the direction of the Delphi Preview Handler.
I spent about an hour looking for this app but never found it.
This Answer by #tvj247 is perhaps a more simple solution, but my HKey structure didn't match his (I'm using Windows 10).
And as for fiddling with the Registry, that was trial, error, and comparing sublime extension keys to js, html and css.

How to edit header.tpl in CMS Made Simple

I am new in CMS Made Simple and I need to edit header.tpl file. I found the file location here tmp/templates/header.tpl but when I do any change in this file, it does not affect anything at frontend.
I need the help to edit header.tpl file.
To edit your website header: Login to admin area. Go to Layout -> Templates. Click the template in use (often the one ticked Default). Edit the template as required. Click Submit. You should never edit files in the tmp area.

Spry menu doesnt work on another server

I created a few linked pages on dreamweaver. When I send them all through a zipped file to another computer to test it, the image on all pages works fine. However the spry menu does not appear. Instead, all the text from the menu appears vertically down the page, despite including all of the spry assets in the zip file.
Anybody know how I can fix this or have an idea of where i am going wrong?
If all of the menu code is appearing as a list, it means that the page is not finding the Spry CSS and/or JS files. Check the calls to those files in the HTML again.

Resources