Produit
Boutique de démonstration
Démonstration
Caractéristiques
Pour les développeurs
Pour les propriétaires de magasins
Industries
Mode
Santé & Beauté
Nourriture & boissons
Automobile
Industriel & Scientifique
Meubles
Commerce électronique B2B
International
Téléchargements
Télécharger nopCommerce
Marketplace
Traductions
Clé de suppression des droits d'auteur
Application Mobile
Web API
Support & Services
Formation
Documentation
Forums communautaires
Services d'assistance premium
Demander un devis
Contactez-nous
Partenaires
Français
English
Español
Deutsch
Russian
Français
Italiano
Português
Türkçe
简体中文
日本語
Tiếng Việt
Commencer
Shopping cart
Mon compte
Connexion
S'enregistrer
Accueil
>
Forums
>
General
>
Development
>
Advertisement
Advertisement
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
waleed44
Nombre de messages:
6
Karma:
40
Inscrit:
07/06/2015
Localisation:
Egypt
Posté:
Il y a 8 ans
Can I place ads on the side of Home page or show an advertising message appears when openning the site?
sohel
MVP
Développeur certifié
Nombre de messages:
1623
Karma:
15968
Inscrit:
25/11/2013
Localisation:
Bangladesh
Posté:
Il y a 8 ans
waleed44 wrote:
Can I place ads on the side of Home page or show an advertising message appears when openning the site?
Yes, you can.
waleed44
Nombre de messages:
6
Karma:
40
Inscrit:
07/06/2015
Localisation:
Egypt
Posté:
Il y a 8 ans
how?
sohel
MVP
Développeur certifié
Nombre de messages:
1623
Karma:
15968
Inscrit:
25/11/2013
Localisation:
Bangladesh
Posté:
Il y a 8 ans
waleed44 wrote:
how?
Find out the Index.cshtml file
Path(DefautClean Theme): ~\Views\Home\Index.cshtml
Theme path: ~\Themes\{YourThemeName}\Views\Home\Index.cshtml
Way 1
: Write the required html in the Index.cshtml file
Way 2
: Create topic from admin and call it from Index.cshtml file
i.e. See how "HomePageText" topic work.
@Html.Action("TopicBlock", "Topic", new { systemName = "HomePageText" })
Note: you will need write your own css according to your theme
a.m.
Membre de l'équipe
Nombre de messages:
16619
Karma:
155940
Inscrit:
22/10/2008
Localisation:
Armenia
Posté:
Il y a 8 ans
Or simply edit existing "HomePageText" topic
mohsenhajikarimian
Nombre de messages:
3
Karma:
15
Inscrit:
19/05/2018
Localisation:
Iran (Islamic Republic of)
Posté:
Il y a 5 ans
sohel wrote:
@Html.Action("TopicBlock", "Topic", new { systemName = "HomePageText" })
in Nop v4.0 use it:
@await Component.InvokeAsync("TopicBlock",new { systemName = "advertisement" })
note: "advertisement" is system name of your new topic.
New York
MVP
Nombre de messages:
11341
Karma:
101117
Inscrit:
22/05/2011
Localisation:
United States
Posté:
Il y a 5 ans
Or,
use a Widget Zone with a plugin that lets you enter any html in any zone
;)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Vous avez encore des questions ou avez besoin d'aide?
.
Services d'assistance premium
.
Bénéficiez d'un support dédié de la part de l'équipe nopCommerce avec une réponse garantie dans les 24 heures.
.
Cours en ligne pour les développeurs
.
Obtenez les compétences pratiques et techniques dont vous avez besoin pour gérer et personnaliser les sites Web nopCommerce.